From: <rp...@hy...> - 2008-01-04 01:41:43
|
Author: rpack Date: 2008-01-03 17:41:26 -0800 (Thu, 03 Jan 2008) New Revision: 7398 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=7398 Modified: trunk/web/js/alertConfigFunctions.js Log: Fix for HQ-821. Added warning message for alert conditions set to fire on a metric baseline where no baseline has been calculated. Modified: trunk/web/js/alertConfigFunctions.js =================================================================== --- trunk/web/js/alertConfigFunctions.js 2008-01-04 01:39:54 UTC (rev 7397) +++ trunk/web/js/alertConfigFunctions.js 2008-01-04 01:41:26 UTC (rev 7398) @@ -22,6 +22,18 @@ // USA. /*-- START alertConfigFunctions.js --*/ + +function resetNote(){ + dojo.byId('baselineNotCalcMsg').style.display='none'; +} +function toggleNoBaselineMessage(obj){ + if(this.length <= 2 && obj.selectedIndex == 1){ + dojo.byId('baselineNotCalcMsg').style.display='inline'; + } + else{ + dojo.byId('baselineNotCalcMsg').style.display='none'; + } +} function selectMetric(selName, hidName) { var sel = document.getElementsByName(selName)[0]; var selValue = sel[sel.selectedIndex].value; |