From 8e88028417319bd3386195d95e244b05f82982ce Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Tue, 16 Oct 2007 10:54:47 -0700 Subject: patch queue: jslint_fixes.patch --- ipa-server/ipa-gui/ipagui/static/javascript/dynamicedit.js | 6 +++--- ipa-server/ipa-gui/ipagui/static/javascript/ipautil.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ipa-server/ipa-gui/ipagui/static/javascript/dynamicedit.js b/ipa-server/ipa-gui/ipagui/static/javascript/dynamicedit.js index 5d157cb8..d37dd920 100644 --- a/ipa-server/ipa-gui/ipagui/static/javascript/dynamicedit.js +++ b/ipa-server/ipa-gui/ipagui/static/javascript/dynamicedit.js @@ -117,11 +117,11 @@ function addmember(dn, info) { newdiv.style.display = 'none'; $('newmembers').appendChild(newdiv); - return newdiv + return newdiv; } function addmemberHandler(element, dn, info) { - var newdiv = addmember(dn, info) + var newdiv = addmember(dn, info); if (newdiv != null) { new Effect.Fade(Element.up(element), {duration: 0.75}); new Effect.Appear(newdiv, {duration: 0.75}); @@ -154,7 +154,7 @@ function removemember(dn, info) { newdiv.style.display = 'none'; $('delmembers').appendChild(newdiv); - return newdiv + return newdiv; } function removememberHandler(element, dn, info) { diff --git a/ipa-server/ipa-gui/ipagui/static/javascript/ipautil.js b/ipa-server/ipa-gui/ipagui/static/javascript/ipautil.js index 4aa74f37..3fdd04ed 100644 --- a/ipa-server/ipa-gui/ipagui/static/javascript/ipautil.js +++ b/ipa-server/ipa-gui/ipagui/static/javascript/ipautil.js @@ -4,5 +4,5 @@ * it can be embedded inside a dynamically generated string. */ function jsStringEscape(input) { - return input.gsub(/(['"\\])/, function(match){ return "\\" + match[0]} ); + return input.gsub(/(['"\\])/, function(match){ return "\\" + match[0];} ); } -- cgit