From 52ad2e19bf824cbaa6e6f96d6c8e71561e865819 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 26 Feb 2013 23:44:34 +0100 Subject: updated js libraries, cleaned jquery-ui --- module/web/static/js/views/dashboardView.js | 1 + module/web/static/js/views/packageView.js | 1 + 2 files changed, 2 insertions(+) (limited to 'module/web/static/js/views') 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'); -- cgit v1.2.3