Fixed: Error messages not being shown in the UI or being shown in the wrong place

This commit is contained in:
Mark McDowall
2014-06-04 08:38:26 -07:00
parent 9916479f02
commit 545bc756f2
13 changed files with 66 additions and 34 deletions
+3 -3
View File
@@ -11,7 +11,7 @@ define(
constructor: function () {
Backbone.Marionette.Region.prototype.constructor.apply(this, arguments);
this.on('show', this.showPanel, this);
this.on('show', this.showModal, this);
},
getEl: function (selector) {
@@ -20,7 +20,7 @@ define(
return $el;
},
showPanel: function () {
showModal: function () {
this.$el.addClass('modal fade');
//need tab index so close on escape works
@@ -32,7 +32,7 @@ define(
'backdrop': 'static'});
},
closePanel: function () {
closeModal: function () {
$(this.el).modal('hide');
this.reset();
}