src/hg/js/utils.js 1.16
1.16 2009/04/03 22:40:36 tdreszer
No longer need to convert href vars to hidden inputs when converting a link to a posted url
Index: src/hg/js/utils.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/utils.js,v
retrieving revision 1.15
retrieving revision 1.16
diff -b -B -U 4 -r1.15 -r1.16
--- src/hg/js/utils.js 1 Apr 2009 20:02:59 -0000 1.15
+++ src/hg/js/utils.js 3 Apr 2009 22:40:36 -0000 1.16
@@ -230,15 +230,13 @@
return url;
}
function postTheForm(formName,href)
-{ // posts the form converting GET vars to Post vars first
- // Need to parse out vars and ensure doing post!
+{ // posts the form with a passed in href
var goodForm=$("form[name='"+formName+"']");
if(goodForm.length == 1) {
- var url = parseUrlAndUpdateVars(goodForm,href); // TODO: when Galt checks in hist post and get togther solution
- $(goodForm).attr('action',url); // then
- //$(goodForm).attr('action',href); // just attach the straight href
+ if(href != undefined && href.length > 0)
+ $(goodForm).attr('action',href); // just attach the straight href
$(goodForm).submit();
}
return false; // Meaning do not continue with anything else
}