Upgrade to Bootstrap 3

This commit is contained in:
benweet 2013-08-25 23:11:07 +02:00
parent b7f53b8b96
commit a8f88831d9
2 changed files with 5 additions and 3 deletions

View File

@ -469,7 +469,7 @@ define([
}).on('hide.bs.collapse', function(e) { }).on('hide.bs.collapse', function(e) {
if(e.target === $menuPanelElt[0]) { if(e.target === $menuPanelElt[0]) {
isMenuPanelShown = false; isMenuPanelShown = false;
menuPanelBackdropElt.remove(); menuPanelBackdropElt.parentNode.removeChild(menuPanelBackdropElt);
$menuPanelElt.removeClass('move-to-front'); $menuPanelElt.removeClass('move-to-front');
} }
}).on('hidden.bs.collapse', function(e) { }).on('hidden.bs.collapse', function(e) {
@ -496,7 +496,7 @@ define([
}).on('hide.bs.collapse', function(e) { }).on('hide.bs.collapse', function(e) {
if(e.target === $documentPanelElt[0]) { if(e.target === $documentPanelElt[0]) {
isDocumentPanelShown = false; isDocumentPanelShown = false;
documentPanelBackdropElt.remove(); documentPanelBackdropElt.parentNode.removeChild(documentPanelBackdropElt);
$documentPanelElt.removeClass('move-to-front'); $documentPanelElt.removeClass('move-to-front');
} }
}).on('hidden.bs.collapse', function(e) { }).on('hidden.bs.collapse', function(e) {

View File

@ -181,7 +181,9 @@ define([
// Create a backdrop and add to the body // Create a backdrop and add to the body
utils.createBackdrop = function(toggle, target) { utils.createBackdrop = function(toggle, target) {
var result = crel('div', { var result = crel('div', {
'class': 'modal-backdrop in' 'class': 'modal-backdrop in',
'data-toggle': toggle,
'data-target': target,
}); });
document.body.appendChild(result); document.body.appendChild(result);
return result; return result;