src/hg/js/utils.js 1.23
1.23 2009/08/20 17:07:48 tdreszer
Toggling metadata didn't work on MSIE. Converting contents to comment was the problem.
Index: src/hg/js/utils.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/utils.js,v
retrieving revision 1.22
retrieving revision 1.23
diff -b -B -U 4 -r1.22 -r1.23
--- src/hg/js/utils.js 13 Aug 2009 06:46:23 -0000 1.22
+++ src/hg/js/utils.js 20 Aug 2009 17:07:48 -0000 1.23
@@ -384,19 +384,16 @@
// Will show subtrack specific configuration controls
// Config controls not matching name will be hidden
var divit = $("#div_"+tableName+"_meta");
if($(divit).css('display') == 'none')
- $("#div_"+tableName+"_cfg").hide();
+ $("#div_"+tableName+"_cfg").hide(); // Hide any configuration when opening metadata
var htm = $(divit).html();
// Seems to be faster if this undisplayed junk is commented out.
if(htm.substring(0,4) == "<!--") {
htm = htm.substring(4,htm.length-7);
$(divit).html(htm);
- } else {
- $(divit).html("<!--"+htm+"-->");
}
-
- $(divit).toggle();
+ $(divit).toggle(); // jQuery hide/show
return false;
}
function getHgsid()