From fc4e71d7809e6e9975d678ee388fc28c74e0e3af Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 10 Jul 2013 23:07:52 +0200 Subject: several ui fixes --- pyload/web/app/scripts/views/queryModal.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyload/web/app/scripts/views/queryModal.js') 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() { -- cgit v1.2.3