|
From: <he...@hy...> - 2007-03-13 22:43:40
|
Author: heather Date: 2007-03-13 14:43:33 -0800 (Tue, 13 Mar 2007) New Revision: 3743 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3743 Modified: trunk/web/common/Header.jsp Log: changed the hb buttons to submit via an ajax call, also refromatted the div a little Modified: trunk/web/common/Header.jsp =================================================================== --- trunk/web/common/Header.jsp 2007-03-13 22:08:49 UTC (rev 3742) +++ trunk/web/common/Header.jsp 2007-03-13 22:43:33 UTC (rev 3743) @@ -37,14 +37,17 @@ var help = "<hq:help/>"; function getUpdateStatus(opt) { - if (opt=="Ok") { - var pars = "update=true"; + if (opt=="Ignore") { + var pars = "update=false"; var updateUrl = 'Dashboard.do?'; var url = updateUrl + pars; - window.location = url; + //window.location = url; + new Ajax.Request( url, {method: 'post'} ); + } + menuLayers.hide(); } - menuLayers.hide(); - } + + </script> <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-top:2px solid #3399ff;border-bottom:2px solid #3399ff;" height="56"> @@ -80,8 +83,12 @@ <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%"> <tr> <td class="MastheadBgTop" colspan="5" nowrap style="border-bottom:1px solid #ffffff;" height="34"> - <c:if test="${not empty HQUpdateReport}"><div style="position:absolute;top:10px;right:30px;" id="hb"> - <html:img page="/images/transmit.gif" border="0" width="16" height="16" onmouseover="menuLayers.show('update', event)" onmouseout="menuLayers.hide()"/></div></c:if> + + <c:if test="${not empty HQUpdateReport}"> + <div style="position:absolute;top:10px;right:30px;" id="hb"> + <html:img page="/images/transmit.gif" border="0" width="16" height="16" onmouseover="menuLayers.show('update', event)" onmouseout="menuLayers.hide()"/></div> + </c:if> + <div style="display:none;position:absolute;top:10px;right:10px;" id="loading"> <html:img page="/images/ajax-loader.gif" border="0" width="16" height="16" /></div> <div style="clear:both;"></div> @@ -146,12 +153,12 @@ </table> <c:if test="${not empty HQUpdateReport}"> -<div id="update" class="menu" style="border:1px solid black;padding:7px;font-weight:bold;background:white;color:#e15700;font-size:12px;"> +<div id="update" class="menu" style="border:1px solid black;padding-top:15px;padding-bottom:15px;font-weight:bold;font-size:12px;"> <c:out value="${HQUpdateReport}" escapeXml="false"/> <form name="updateForm" action=""> - <div style="float:right;padding-left:10px;"><input type="button" value="Cancel" onclick="getUpdateStatus(this.value);"></div> - <div style="float:left;padding-left:15px;padding-right:10px;"><input type="button" value="Ok" onclick="getUpdateStatus(this.value);"></div> - <div style="clear:both;"></div> + <div style="text-align:center;padding-left:15px;padding-right:15px;"><input type="button" value="Ok" onclick="getUpdateStatus(this.value);"><span style="padding-left:15px;"><input type="button" value="Ignore" onclick="getUpdateStatus(this.value);"></span> + </div> + </form> </div> </c:if> |