src/hg/js/hgTracks.js 1.25
1.25 2009/04/07 19:58:54 tdreszer
More tightening of the postTheForm screws
Index: src/hg/js/hgTracks.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/hgTracks.js,v
retrieving revision 1.24
retrieving revision 1.25
diff -b -B -U 4 -r1.24 -r1.25
--- src/hg/js/hgTracks.js 7 Apr 2009 16:47:58 -0000 1.24
+++ src/hg/js/hgTracks.js 7 Apr 2009 19:58:54 -0000 1.25
@@ -226,11 +226,11 @@
}
$(document).ready(function()
{
- $('a,area').not("[href*='#']").click(function(i) {
+ $('a,area').not("[href*='#']").filter("[target='']").click(function(i) {
var thisForm=$(this).parents('form');
- if(thisForm != undefined && thisForm.length == 1 && $(thisForm).attr('target').length == 0)
+ if(thisForm != undefined && thisForm.length == 1)
return postTheForm($(thisForm).attr('name'),this.href);
return false;
});