From: <cl...@hy...> - 2009-02-18 01:16:29
|
Author: clee Date: 2009-02-17 17:16:22 -0800 (Tue, 17 Feb 2009) New Revision: 12527 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=12527 Modified: trunk/web/admin/config/ViewEscalation.jsp Log: [HQ-1181] No Javascript to actually select the correct maxWaitTime value Modified: trunk/web/admin/config/ViewEscalation.jsp =================================================================== --- trunk/web/admin/config/ViewEscalation.jsp 2009-02-18 00:15:00 UTC (rev 12526) +++ trunk/web/admin/config/ViewEscalation.jsp 2009-02-18 01:16:22 UTC (rev 12527) @@ -109,6 +109,12 @@ dojo11.byId('acknowledged').innerHTML = '<fmt:message key="alert.config.escalation.allow.pause" /> ' + maxWaitTime; } dojo11.byId('allowPauseTrue').checked = "true"; + + var sel = dojo11.byId('maxWaitTime'); + for (var i = 0; sel.selectedIndex == 0 && i < sel.length; i++) { + sel.options[i].selected = + (sel.options[i].value == tmp.escalation.maxWaitTime); + } } else { dojo11.byId('acknowledged').innerHTML = '<fmt:message key="alert.config.escalation.allow.continue" />'; @@ -1380,7 +1386,7 @@ onClick="this.value=true;"/> <fmt:message key="alert.config.escalation.allow.pause"/> - <select + <select class="maxWaitTime" id="maxWaitTime" name="maxWaitTime"> <option value="300000">5 <fmt:message |