summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/views/abstract
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-12 18:15:36 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-12 18:15:36 +0100
commitd2b45c5442aeb0e02f251916ae1beb06830ef4c1 (patch)
treeb5587ad618f0780c7e7443195cda652d9a2eadbb /module/web/static/js/views/abstract
parentrenamed most events, push events to webui (diff)
downloadpyload-d2b45c5442aeb0e02f251916ae1beb06830ef4c1.tar.xz
render download progress
Diffstat (limited to 'module/web/static/js/views/abstract')
-rw-r--r--module/web/static/js/views/abstract/modalView.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/module/web/static/js/views/abstract/modalView.js b/module/web/static/js/views/abstract/modalView.js
index e0542d552..8f5a7ed0c 100644
--- a/module/web/static/js/views/abstract/modalView.js
+++ b/module/web/static/js/views/abstract/modalView.js
@@ -82,11 +82,20 @@ define(['jquery', 'backbone', 'underscore', 'omniwindow'], function($, Backbone,
this.dialog.trigger('show');
- // TODO: set focus on first element
+ this.onShow();
+ },
+
+ onShow: function() {
+
},
hide: function() {
this.dialog.trigger('hide');
+ this.onHide();
+ },
+
+ onHide: function() {
+
},
confirm: function() {