diff options
author | 2013-06-09 16:08:59 +0200 | |
---|---|---|
committer | 2013-06-09 16:08:59 +0200 | |
commit | ecfef4a560dece9dd911017efdfc63fcc04bedfc (patch) | |
tree | 42d00f155c47a8a80e3a023c841a59f87b73885c /module/web/app/scripts/utils/dialogs.js | |
parent | restructured webui to single-page-app, removed jinja (diff) | |
download | pyload-ecfef4a560dece9dd911017efdfc63fcc04bedfc.tar.xz |
adapted to jshint config
Diffstat (limited to 'module/web/app/scripts/utils/dialogs.js')
-rw-r--r-- | module/web/app/scripts/utils/dialogs.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/web/app/scripts/utils/dialogs.js b/module/web/app/scripts/utils/dialogs.js index 13478ff88..4933b7ed2 100644 --- a/module/web/app/scripts/utils/dialogs.js +++ b/module/web/app/scripts/utils/dialogs.js @@ -1,13 +1,14 @@ // Loads all helper and set own handlebars rules -define(['jquery', 'underscore', 'views/abstract/modalView'], function($, _, modal) { +define(['jquery', 'underscore', 'views/abstract/modalView'], function($, _, Modal) { + 'use strict'; // Shows the confirm dialog for given context // on success executes func with context _.confirm = function(template, func, context) { - template = "text!tpl/" + template; + template = 'text!tpl/' + template; _.requireOnce([template], function(html) { var template = _.compile(html); - var dialog = new modal(template, _.bind(func, context)); + var dialog = new Modal(template, _.bind(func, context)); dialog.show(); }); |