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/utils/dialogs.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pyload/web/app/scripts/utils') diff --git a/pyload/web/app/scripts/utils/dialogs.js b/pyload/web/app/scripts/utils/dialogs.js index 4933b7ed2..3ceffc9c3 100644 --- a/pyload/web/app/scripts/utils/dialogs.js +++ b/pyload/web/app/scripts/utils/dialogs.js @@ -5,10 +5,9 @@ define(['jquery', 'underscore', 'views/abstract/modalView'], function($, _, Moda // Shows the confirm dialog for given context // on success executes func with context _.confirm = function(template, func, context) { - template = 'text!tpl/' + template; + template = 'hbs!tpl/' + template; _.requireOnce([template], function(html) { - var template = _.compile(html); - var dialog = new Modal(template, _.bind(func, context)); + var dialog = new Modal(html, _.bind(func, context)); dialog.show(); }); -- cgit v1.2.3