summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/scripts/utils/dialogs.js
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/web/app/scripts/utils/dialogs.js')
-rw-r--r--pyload/web/app/scripts/utils/dialogs.js5
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();
});