78e07939630905fa672be946c7681d4e6480d2d9 tdreszer Fri Aug 27 11:46:33 2010 -0700 Fixed some problems with right-click and persistence when hiding subtracks diff --git src/hg/js/utils.js src/hg/js/utils.js index 3fa8c99..16187ed 100644 --- src/hg/js/utils.js +++ src/hg/js/utils.js @@ -469,10 +469,13 @@ alert(msg); else { $( warnList ).append('<li>'+msg+'</li>'); + if(showWarnBox != undefined) showWarnBox(); + else + alert(msg); } } - +/* function popupBox(popit, content, popTitle) { // Kicks off a Modal Dialog for the provided content. @@ -520,6 +523,7 @@ jQuery('body').css('cursor', ''); $(popit).dialog('open'); } +*/ function embedBoxOpen(boxit, content, reenterable) // 4 extra STRING Params: boxWidth, boxTitle, applyFunc, applyName { @@ -624,6 +628,14 @@ return hgsid; } +function getDb() +{ + var db = document.getElementsByName("db"); + if(db == undefined || db.length == 0) + return ""; // default? + return db[0].value; +} + function Rectangle() { // Rectangle object constructor: