New: close modal dialogs by clicking outside of modal

This commit is contained in:
Mark McDowall
2014-08-10 22:36:51 -07:00
parent 9ffdf18935
commit 9f52daf78e
23 changed files with 645 additions and 687 deletions

View File

@@ -5,7 +5,7 @@ define(
'backbone',
'marionette',
'bootstrap'
], function ($,Backbone, Marionette) {
], function ($, Backbone, Marionette) {
var region = Marionette.Region.extend({
el: '#modal-region',
@@ -27,9 +27,12 @@ define(
//https://github.com/twitter/bootstrap/issues/4663
this.$el.attr('tabindex', '-1');
this.$el.modal({
'show' : true,
'keyboard': true,
'backdrop': 'static'});
show : true,
keyboard : true,
backdrop : true
});
this.currentView.$el.addClass('modal-dialog');
},
closeModal: function () {