From b79bf4ab1757eb08f7209f158f1f3a386ace8c96 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Wed, 12 Jan 2011 14:47:29 -0500 Subject: javascript lint cleanup --- install/static/ipa.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'install/static/ipa.js') diff --git a/install/static/ipa.js b/install/static/ipa.js index b340d835..296df05a 100644 --- a/install/static/ipa.js +++ b/install/static/ipa.js @@ -30,7 +30,7 @@ var IPA = ( function () { that.use_static_files = false; that.json_url = '/ipa/json'; if (that.use_static_files){ - that.json_url = 'test/data' + that.json_url = 'test/data'; } that.ajax_options = { @@ -98,8 +98,7 @@ var IPA = ( function () { }, on_error, null, - 'ipa_init' - ); + 'ipa_init'); }; that.get_entities = function () { @@ -172,8 +171,7 @@ function ipa_command(spec) { that.on_success, that.on_error, null, - that.name - ); + that.name); }; that.to_json = function() { @@ -263,11 +261,12 @@ function ipa_batch_command(spec) { }, function(xhr, text_status, error_thrown) { // TODO: undefined behavior - if (that.on_error) that.on_error(xhr, text_status, error_thrown) + if (that.on_error) { + that.on_error(xhr, text_status, error_thrown); + } }, null, - that.name - ); + that.name); }; return that; @@ -319,7 +318,7 @@ function ipa_cmd(name, args, options, win_callback, fail_callback, objname, comm error_thrown = { name: xhr.responseText || 'Unknown Error', message: xhr.statusText || 'Unknown Error' - } + }; } if (xhr.status === 401) { @@ -332,7 +331,7 @@ function ipa_cmd(name, args, options, win_callback, fail_callback, objname, comm "Please run kinit and then click 'retry'. "+ "If this is your first time running the IPA Web UI "+ ""+ - "follow these directions to configure your browser." + "follow these directions to configure your browser."; } } -- cgit