diff options
Diffstat (limited to 'module/web/static/js/views')
-rw-r--r-- | module/web/static/js/views/dashboardView.js | 1 | ||||
-rw-r--r-- | module/web/static/js/views/packageView.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/module/web/static/js/views/dashboardView.js b/module/web/static/js/views/dashboardView.js index b0757fa11..64f61eeaf 100644 --- a/module/web/static/js/views/dashboardView.js +++ b/module/web/static/js/views/dashboardView.js @@ -93,6 +93,7 @@ define(['jquery', 'backbone', 'underscore', 'app', 'models/TreeCollection', }, // TODO: better state control of dashboard + // TODO: elaborate events and reaction loading: function(model) { // nothing to load when it is already open, or nothing is shown if (!this.files || (model && this.files === model.get('files'))) diff --git a/module/web/static/js/views/packageView.js b/module/web/static/js/views/packageView.js index 7bb4bb472..095121d87 100644 --- a/module/web/static/js/views/packageView.js +++ b/module/web/static/js/views/packageView.js @@ -65,6 +65,7 @@ define(['jquery', 'app', 'views/abstract/itemView', 'underscore'], open: function(e) { e.preventDefault(); var self = this; + // TODO: error case App.vent.trigger('dashboard:loading', this.model); this.model.fetch({silent: true, success: function() { console.log('Package ' + self.model.get('pid') + ' loaded'); |