@@ -430,6 +430,10 @@ textarea[data-fieldtype="Small Text"] { | |||||
} | } | ||||
} | } | ||||
.modal-backdrop { | |||||
opacity: 0.5; | |||||
} | |||||
/* buttons */ | /* buttons */ | ||||
.btn-default { | .btn-default { | ||||
color: #ffffff; | color: #ffffff; | ||||
@@ -34,7 +34,7 @@ wn.ui.Dialog = wn.ui.FieldGroup.extend({ | |||||
this.make(); | this.make(); | ||||
}, | }, | ||||
make: function() { | make: function() { | ||||
this.$wrapper = $('<div class="modal fade" style="overflow: auto;">\ | |||||
this.$wrapper = $('<div class="modal" style="overflow: auto;">\ | |||||
<div class="modal-dialog">\ | <div class="modal-dialog">\ | ||||
<div class="modal-content">\ | <div class="modal-content">\ | ||||
<div class="modal-header">\ | <div class="modal-header">\ | ||||
@@ -47,6 +47,11 @@ wn.views.Container = Class.extend({ | |||||
return; | return; | ||||
} | } | ||||
// hide dialog | |||||
if(cur_dialog && cur_dialog.display) { | |||||
cur_dialog.hide(); | |||||
} | |||||
// hide current | // hide current | ||||
if(this.page && this.page != page) { | if(this.page && this.page != page) { | ||||
$(this.page).toggle(false); | $(this.page).toggle(false); | ||||