From ecfef4a560dece9dd911017efdfc63fcc04bedfc Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 9 Jun 2013 16:08:59 +0200 Subject: adapted to jshint config --- module/web/app/scripts/utils/dialogs.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'module/web/app/scripts/utils/dialogs.js') 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(); }); -- cgit v1.2.3