upgrade.htm revision ec2744bb1f5dca23072b9586b793382fbbb49bf0
147N/A<script type="text/javascript">
147N/A YAHOO.namespace("sun.identity.config.options.upgrade");
147N/A
147N/A //convenient alias:
147N/A var $ = YAHOO.util.Dom.get;
147N/A
147N/A function cancelUpgrade() {
147N/A YAHOO.sun.identity.config.options.upgrade.hide();
147N/A }
147N/A
147N/A function saveReport() {
147N/A window.open("$context$path?actionLink=saveReport", "Download");
147N/A }
147N/A
147N/A function writeUpgradeAsync() {
147N/A ie7fix++;
147N/A AjaxUtils.call("$context$path?actionLink=doUpgrade&ie7fix=" + ie7fix, writeConfigResponse);
147N/A }
147N/A
147N/A function doUpgrade() {
147N/A document.getElementById("returnToConfig").style.display = "none";
147N/A document.getElementById("setupMessage").innerHTML = "";
147N/A YAHOO.sun.identity.config.options.inProgress.show();
147N/A
147N/A var fr1 = window.frames['progressIframe'];
147N/A if (fr1) {
147N/A fr1.location = "$context/upgrade/setUpgradeProgress";
147N/A }
147N/A setTimeout('writeUpgradeAsync()', 2000);
147N/A }
147N/A
147N/A function upgradeAcceptChecked(){
147N/A document.getElementById("upgrade-accept-license-button").disabled = document.getElementById("upgrade-accept-check").checked ? false : true;
147N/A }
147N/A
147N/A function upgradeAcceptLicense() {
147N/A YAHOO.util.Dom.addClass('upgrade', 'license-accepted');
147N/A }
206N/A</script>
206N/A<div id="upgrade" style="width: 500px; background-color: #FFFFFF" class="clearfix">
206N/A <div class="header">$page.getLocalizedString("upgrade.main.title")</div>
206N/A #if ($error)
206N/A <div id="content" class="tabContent">
206N/A <div class="bodyPopup borderPopUpGray" align="center" style="background:#FFFFFF">
206N/A <p class="blueSmall">$page.getLocalizedString("upgrade.init.error")</p>
206N/A <button id="cancelButton" type="button" onclick="cancelUpgrade();">$page.getLocalizedString("cancel.button")</button>
206N/A </div>
147N/A </div>
147N/A #else
147N/A <div class="license inner-license">
147N/A <pre id="upgrade-license-message"> </pre>
206N/A <div class="accept-check-container clearfix">
147N/A <input type="checkbox" onchange="upgradeAcceptChecked();" name="upgrade-accept-check" id="upgrade-accept-check" >
147N/A <label for="upgrade-accept-check">I accept the license agreement</label>
147N/A </div>
147N/A </div>
147N/A <div id="content" class="tabContent summary">
147N/A <div style="margin: 10px 23px">
147N/A $page.getLocalizedString("upgrade.current.version") $currentVersion <br/>
147N/A $page.getLocalizedString("upgrade.new.version") $newVersion
181N/A </div>
147N/A <div style="overflow: auto; border: solid 1px; height: 180px; width: 90%; margin: 0 auto;">
181N/A $changelist
147N/A </div>
147N/A </div>
147N/A <!-- </div>-->
147N/A <div id="upgradeFooter" style="padding-bottom: 10px" class="clearfix">
147N/A
<div class="col1">&nbsp;</div>
<div align="left" style="float:left; margin-left: 23px" class="license">
<button id="upgrade-accept-license-button" type="button" onclick="upgradeAcceptLicense();" class="buttonblue license" disabled>Continue</button>
</div>
<div class="summary" style="float:left; margin-left: 23px" >
<div style="float: left;" >
<button id="upgradeButton" type="button" onclick="doUpgrade()">$page.getLocalizedString("upgrade.button")</button>
</div>
<div style="float:left; margin-left: 23px">
<button id="saveReportButton" type="button" onclick="saveReport();" class="buttonblue">$page.getLocalizedString("save.report.button")</button>
</div>
</div>
<div style="float: right; margin-right: 23px">
<button id="cancelButton" type="button" onclick="cancelUpgrade();">$page.getLocalizedString("cancel.button")</button>
</div>
</div>
#end
</div>