diff --git a/.jshintrc b/.jshintrc index e30736b5..7fc1d7af 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,21 +1,27 @@ { - "predef": [ - "SWARM" - ], + "boss": true, + "curly": true, + "eqeqeq": true, + "eqnull": true, + "expr": true, + "immed": true, + "noarg": true, + "onevar": true, + "quotmark": "double", + "smarttabs": true, + "trailing": true, + "undef": true, + "unused": true, - "bitwise": true, - "curly": true, - "eqeqeq": true, - "immed": true, - "latedef": true, - "newcap": true, - "noarg": true, - "noempty": true, - "undef": true, - "trailing": true, + "bitwise": true, + "browser": true, + "es3": true, + "latedef": true, + "newcap": true, + "noempty": true, - "smarttabs": true, - - "browser": true, - "jquery": true + "predef": [ + "SWARM", + "jQuery" + ] } diff --git a/js/addjob.js b/js/addjob.js index 1331e8ae..e7e1a9d9 100644 --- a/js/addjob.js +++ b/js/addjob.js @@ -1,42 +1,41 @@ /** * JavaScript file for the "addjob" page. * - * @author Timo Tijhof, 2012 + * @author Timo Tijhof * @since 1.0.0 * @package TestSwarm */ -jQuery(function ( $ ) { - var $runsContainer, $addRunBtn, $runFieldsetClean, cnt; +jQuery(function( $ ) { + var $addRunBtn, + $runsContainer = $( "#runs-container" ), + $runFieldsetClean = $runsContainer.children( "fieldset" ).eq( 0 ).clone().detach(), + cnt = $runsContainer.children( "fieldset" ).length; - $runsContainer = $('#runs-container'); - $runFieldsetClean = $runsContainer.children('fieldset').eq(0).clone().detach(); - cnt = $runsContainer.children('fieldset').length; - - $addRunBtn = $('