mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 16:31:13 +00:00
[common.js] bugfix for 'showConfirm'
This commit is contained in:
@@ -117,12 +117,11 @@ define([
|
|||||||
showConfirm: function(title, content, yesCallback) {
|
showConfirm: function(title, content, yesCallback) {
|
||||||
var $popup = $("#confirm-popup");
|
var $popup = $("#confirm-popup");
|
||||||
var $cont = $('#confirm-con');
|
var $cont = $('#confirm-con');
|
||||||
var $container = $('#simplemodal-container');
|
|
||||||
var $yesBtn = $('#confirm-yes');
|
var $yesBtn = $('#confirm-yes');
|
||||||
|
|
||||||
$cont.html('<h3>' + title + '</h3><p>' + content + '</p>');
|
$cont.html('<h3>' + title + '</h3><p>' + content + '</p>');
|
||||||
$popup.modal({appendTo: '#main'});
|
$popup.modal({appendTo: '#main'});
|
||||||
$container.css({'height':'auto'});
|
$('#simplemodal-container').css({'height':'auto'});
|
||||||
|
|
||||||
$yesBtn.click(yesCallback);
|
$yesBtn.click(yesCallback);
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user