summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/scripts/views/queryModal.js
diff options
context:
space:
mode:
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() {