src/hg/js/utils.js 1.29

1.29 2010/03/16 00:36:32 tdreszer
Minor change to clarify, though I don't think postTheForm has ever been called without the href
Index: src/hg/js/utils.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/utils.js,v
retrieving revision 1.28
retrieving revision 1.29
diff -b -B -U 4 -r1.28 -r1.29
--- src/hg/js/utils.js	16 Feb 2010 01:26:45 -0000	1.28
+++ src/hg/js/utils.js	16 Mar 2010 00:36:32 -0000	1.29
@@ -233,11 +233,13 @@
 function postTheForm(formName,href)
 {   // posts the form with a passed in href
     var goodForm=$("form[name='"+formName+"']");
     if(goodForm.length == 1) {
-        if(href != undefined && href.length > 0)
-            $(goodForm).attr('method','POST');
+        if(href != undefined && href.length > 0) {
             $(goodForm).attr('action',href); // just attach the straight href
+        }
+        $(goodForm).attr('method','POST');
+
         $(goodForm).submit();
     }
     return false; // Meaning do not continue with anything else
 }