commit/galaxy-central: jgoecks: Code cleanup using JSHint.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/0378dd041c60/ changeset: 0378dd041c60 user: jgoecks date: 2012-07-18 21:46:26 summary: Code cleanup using JSHint. affected #: 1 file diff -r 58c24c93bc9a68285bdc035af36116d44292403c -r 0378dd041c6051dc5156c3e15a28ae091fd370a4 static/scripts/galaxy.base.js --- a/static/scripts/galaxy.base.js +++ b/static/scripts/galaxy.base.js @@ -124,16 +124,16 @@ } else if ( target == "demo" ) { // Http request target is a window named // demolocal on the local box - if ( f == undefined || f.closed ) { + if ( f === undefined || f.closed ) { f = window.open( href,target ); f.creator = self; - }; + } } else { window.location = href; - }; - }; + } + } }; - }; + } }); var box = $( "#" + menu.attr( 'popupmenu' ) ); @@ -356,7 +356,7 @@ var set_text = function(new_text) { container.find(":input").remove(); - if (new_text != "") { + if (new_text !== "") { container.text(new_text); } else { @@ -421,7 +421,7 @@ } return container; -} +}; /** * Edit and save text asynchronously. @@ -719,7 +719,7 @@ // add use_panels=True and set target to self. $("a").click( function() { var anchor = $(this); - var galaxy_main_exists = (parent.frames && parent.frames.galaxy_main) + var galaxy_main_exists = (parent.frames && parent.frames.galaxy_main); if ( ( anchor.attr( "target" ) == "galaxy_main" ) && ( !galaxy_main_exists ) ) { var href = anchor.attr("href"); if (href.indexOf("?") == -1) { Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket