From d2b45c5442aeb0e02f251916ae1beb06830ef4c1 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 12 Mar 2013 18:15:36 +0100 Subject: render download progress --- module/web/static/js/views/abstract/modalView.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'module/web/static/js/views/abstract/modalView.js') 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() { -- cgit v1.2.3