7bf077b593599aa4f5c006565f0bd9bdc0860445
larrym
  Fri Aug 27 14:52:07 2010 -0700
add hideLoadingImage
diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js
index 5b85e16..745cd80 100644
--- src/hg/js/hgTracks.js
+++ src/hg/js/hgTracks.js
@@ -1442,6 +1442,11 @@
     return loadingId;
 }
 
+function hideLoadingImage(id)
+{
+    $('#' + id).remove();
+}
+
 function contextMenuHitFinish(menuItemClicked, menuObject, cmd)
 {
 // dispatcher for context menu hits
@@ -1877,7 +1882,7 @@
           // this updates src in img_left_ID, img_center_ID and img_data_ID and map in map_data_ID
           var id = this.id;
           if(this.loadingId) {
-	          $('#' + this.loadingId).remove();
+	          hideLoadingImage(this.loadingId);
           }
           var rec = trackDbJson[id];
           var str = "<TR id='tr_" + id + "'[^>]*>([\\s\\S]+?)</TR>";