src/hg/js/hgTracks.js 1.27
1.27 2009/06/26 20:53:18 tdreszer
First baby steps for imageV2
Index: src/hg/js/hgTracks.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/hgTracks.js,v
retrieving revision 1.26
retrieving revision 1.27
diff -b -B -U 4 -r1.26 -r1.27
--- src/hg/js/hgTracks.js 7 Apr 2009 20:17:02 -0000 1.26
+++ src/hg/js/hgTracks.js 26 Jun 2009 20:53:18 -0000 1.27
@@ -226,12 +226,30 @@
}
$(document).ready(function()
{
+ // Convert map AREA gets to post the form, ensuring that cart variables are kept up to date
$('a,area').not("[href*='#']").filter("[target='']").click(function(i) {
var thisForm=$(this).parents('form');
if(thisForm != undefined && thisForm.length == 1)
return postTheForm($(thisForm).attr('name'),this.href);
return true;
});
+ if($('table#imgTbl').length == 1) {
+ // Make imgTbl allow draw reorder of imgTrack rows
+ if($(".tableWithDragAndDrop").length > 0) {
+ $(".tableWithDragAndDrop").tableDnD({
+ onDragClass: "trDrag",
+ dragHandle: "dragHandle"
+ });
+ }
+
+ // Turn on drag scrolling.
+ //$(".panDivScroller").panImages($(".panDivScroller").width(),0,0);
+
+ // Temporary warning while new imageV2 code is being worked through
+ if($('map#map').children().length > 0) {
+ alert('Using imageV2, but old map is not empty!');
+ }
+ }
});