src/hg/js/utils.js 1.17

1.17 2009/04/07 16:46:25 tdreszer
postTheForm must explicitly set action to POST
Index: src/hg/js/utils.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/utils.js,v
retrieving revision 1.16
retrieving revision 1.17
diff -b -B -U 4 -r1.16 -r1.17
--- src/hg/js/utils.js	3 Apr 2009 22:40:36 -0000	1.16
+++ src/hg/js/utils.js	7 Apr 2009 16:46:25 -0000	1.17
@@ -234,8 +234,9 @@
 {   // 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');
             $(goodForm).attr('action',href); // just attach the straight href
         $(goodForm).submit();
     }
     return false; // Meaning do not continue with anything else