do not cache loaded content in modal windows, because changing the model can make it necessary to reload the view

pull/6827/head
Stephan Eckardt 13 years ago
parent 7c1ba8e615
commit d9542ff105
  1. 7
      assets/javascripts/app/modal.js

@ -64,6 +64,12 @@ var Backlogs = (function () {
this.isOpen = true; // assume, we are open, otherwise, we cannot be closed.
this.close();
this.remoteContentLoaded = false;
},
afterClose : function () {
if (this.container.children.length > 0) {
this.remoteContentLoaded = false;
this.container.innerHTML = "";
}
}
},
@ -71,6 +77,7 @@ var Backlogs = (function () {
beforeInitialize : function () {
this.observe('beforeOpen', Modal.Observers.beforeOpen.bind(this));
this.observe('onFailure', Modal.Observers.onError.bind(this));
this.observe('afterClose', Modal.Observers.afterClose.bind(this));
}
}
});

Loading…
Cancel
Save