src/hg/js/hgTracks.js 1.61
1.61 2010/03/16 00:41:17 tdreszer
Fix bug with map area clicking
Index: src/hg/js/hgTracks.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/hgTracks.js,v
retrieving revision 1.60
retrieving revision 1.61
diff -b -B -U 4 -r1.60 -r1.61
--- src/hg/js/hgTracks.js 11 Mar 2010 02:30:02 -0000 1.60
+++ src/hg/js/hgTracks.js 16 Mar 2010 00:41:17 -0000 1.61
@@ -1037,23 +1037,28 @@
engine.set("token", newToken);
});
});
+function mapClk(obj)
+{
+ return postToSaveSettings(obj);
+}
+
function postToSaveSettings(obj)
{
if(blockUseMap==true) {
return false;
}
if(obj.href == undefined) // called directly with obj and from callback without obj
obj = this;
if( obj.href.match('#') || obj.target.length > 0) {
- //alert("Matched # or has target");
+ //alert("Matched # ["+obj.href+"] or has target:"+obj.target);
return true;
}
var thisForm=$(obj).parents('form');
if(thisForm == undefined || $(thisForm).length == 0)
thisForm=$("FORM");
- if($(thisForm).length > 1)
+ if($(thisForm).length > 1 )
thisForm=$(thisForm)[0];
if(thisForm != undefined && $(thisForm).length == 1) {
//alert("posting form:"+$(thisForm).attr('name'));
return postTheForm($(thisForm).attr('name'),obj.href);
@@ -1153,8 +1157,14 @@
if($('.cytoBand').length > 1) {
$('img#chrom').chromDrag();
}
}
+
+ {
+ var pos = $("input[name='position']");
+ if( pos != undefined)
+ $( pos ).focus();
+ }
});
function rulerModeToggle (ele)
{