2a6bfa260e90202858aa1d950797988bbf3eedcd tdreszer Wed Nov 24 09:45:37 2010 -0800 No functional consequence to check in. But it should be clear that the variable is a trackName and not a tableName. This is part of fix for redmine 1071.30. diff --git src/hg/js/utils.js src/hg/js/utils.js index df82d87..fb1e182 100644 --- src/hg/js/utils.js +++ src/hg/js/utils.js @@ -421,40 +421,40 @@ if(val > rangeMax) { if(popup) { obj.value = prompt(title +" is invalid.\nMust be no greater than "+rangeMax+".",obj.value); continue; } else { alert(title +" of '"+obj.value +"' is invalid.\nMust be no greater than "+rangeMax+"."); obj.value = obj.defaultValue; return false; } } } return true; } } -function metadataShowHide(tableName,showLonglabel,showShortLabel) +function metadataShowHide(trackName,showLonglabel,showShortLabel) { // Will show subtrack specific configuration controls // Config controls not matching name will be hidden - var divit = $("#div_"+tableName+"_meta"); + var divit = $("#div_"+trackName+"_meta"); if($(divit).css('display') == 'none') { - $("#div_"+tableName+"_cfg").hide(); // Hide any configuration when opening metadata + $("#div_"+trackName+"_cfg").hide(); // Hide any configuration when opening metadata if($(divit).find('table').length == 0) { - lookupMetadata(tableName,showLonglabel,showShortLabel); + lookupMetadata(trackName,showLonglabel,showShortLabel); } } $(divit).toggle(); // jQuery hide/show return false; } function warnBoxJsSetup() { // Sets up warnBox if not already established. This is duplicated from htmshell.c var html = ""; html += "<center>"; html += "<div id='warnBox' style='display:none; background-color:Beige; "; html += "border: 3px ridge DarkRed; width:640px; padding:10px; margin:10px; "; html += "text-align:left;'>"; html += "<CENTER><B id='warnHead' style='color:DarkRed;'></B></CENTER>"; html += "<UL id='warnList'></UL>";