diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-07-10 23:07:52 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-07-10 23:07:52 +0200 |
commit | fc4e71d7809e6e9975d678ee388fc28c74e0e3af (patch) | |
tree | ce9624f00ed5a8ab22781476ea1b8196bee53527 /pyload/web/app/scripts/utils/dialogs.js | |
parent | new hoster links, fixed manifest (diff) | |
download | pyload-fc4e71d7809e6e9975d678ee388fc28c74e0e3af.tar.xz |
several ui fixes
Diffstat (limited to 'pyload/web/app/scripts/utils/dialogs.js')
-rw-r--r-- | pyload/web/app/scripts/utils/dialogs.js | 5 |
1 files changed, 2 insertions, 3 deletions
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(); }); |