1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +00:00

[common.js] bugfix for 'showConfirm'

This commit is contained in:
llj
2015-05-13 11:06:57 +08:00
parent ede9f20319
commit 4fd4bd27b1

View File

@@ -117,12 +117,11 @@ define([
showConfirm: function(title, content, yesCallback) {
var $popup = $("#confirm-popup");
var $cont = $('#confirm-con');
var $container = $('#simplemodal-container');
var $yesBtn = $('#confirm-yes');
$cont.html('<h3>' + title + '</h3><p>' + content + '</p>');
$popup.modal({appendTo: '#main'});
$container.css({'height':'auto'});
$('#simplemodal-container').css({'height':'auto'});
$yesBtn.click(yesCallback);
},