summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/scripts/views/queryModal.js
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-10 23:07:52 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-10 23:07:52 +0200
commitfc4e71d7809e6e9975d678ee388fc28c74e0e3af (patch)
treece9624f00ed5a8ab22781476ea1b8196bee53527 /pyload/web/app/scripts/views/queryModal.js
parentnew hoster links, fixed manifest (diff)
downloadpyload-fc4e71d7809e6e9975d678ee388fc28c74e0e3af.tar.xz
several ui fixes
Diffstat (limited to 'pyload/web/app/scripts/views/queryModal.js')
-rw-r--r--pyload/web/app/scripts/views/queryModal.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/web/app/scripts/views/queryModal.js b/pyload/web/app/scripts/views/queryModal.js
index 7c6439b49..c748e1657 100644
--- a/pyload/web/app/scripts/views/queryModal.js
+++ b/pyload/web/app/scripts/views/queryModal.js
@@ -1,14 +1,13 @@
-define(['jquery', 'underscore', 'app', 'views/abstract/modalView', './input/inputLoader', 'text!tpl/default/queryDialog.html'],
+define(['jquery', 'underscore', 'app', 'views/abstract/modalView', './input/inputLoader', 'hbs!tpl/dialogs/interactionTask'],
function($, _, App, modalView, load_input, template) {
'use strict';
return modalView.extend({
- // TODO: submit on enter reloads the page sometimes
events: {
'click .btn-success': 'submit',
'submit form': 'submit'
},
- template: _.compile(template),
+ template: template,
// the notificationView
parent: null,
@@ -56,6 +55,7 @@ define(['jquery', 'underscore', 'app', 'views/abstract/modalView', './input/inpu
}});
this.input.clear();
+ return false;
},
onShow: function() {