upgrade.htm revision 99690585c1f4c3ffb83c50bcb5cc0725cadff899
486N/A<!--
486N/A ~ Copyright 2014 ForgeRock, AS.
486N/A ~
486N/A ~ The contents of this file are subject to the terms of the Common Development and
486N/A ~ Distribution License (the License). You may not use this file except in compliance with the
486N/A ~ License.
486N/A ~
486N/A ~ You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
486N/A ~ specific language governing permission and limitations under the License.
486N/A ~
486N/A ~ When distributing Covered Software, include this CDDL Header Notice in each file and include
486N/A ~ the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
486N/A ~ Header, with the fields enclosed by brackets [] replaced by your own identifying
486N/A ~ information: "Portions copyright [year] [name of copyright owner]".
486N/A -->
486N/A
486N/A<script type="text/javascript">
486N/A YAHOO.namespace("sun.identity.config.options.upgrade");
486N/A
486N/A //convenient alias:
486N/A var $ = YAHOO.util.Dom.get;
486N/A
486N/A function cancelUpgrade() {
486N/A YAHOO.sun.identity.config.options.upgrade.hide();
486N/A }
486N/A
486N/A function saveReport() {
486N/A window.open("$context$path?actionLink=saveReport", "Download");
486N/A }
486N/A
486N/A function writeUpgradeAsync() {
486N/A ie7fix++;
486N/A var licenseAccepted = document.getElementById("upgrade-accept-check").checked ? "true" : "false";
486N/A
486N/A AjaxUtils.call("$context$path?actionLink=doUpgrade&ie7fix=" + ie7fix + "&acceptLicense=" + licenseAccepted, writeConfigResponse);
486N/A }
486N/A
619N/A function doUpgrade() {
619N/A document.getElementById("returnToConfig").style.display = "none";
619N/A document.getElementById("setupMessage").innerHTML = "";
619N/A YAHOO.sun.identity.config.options.inProgress.show();
619N/A
619N/A var fr1 = window.frames['progressIframe'];
619N/A if (fr1) {
619N/A fr1.location = "$context/upgrade/setUpgradeProgress";
619N/A }
619N/A setTimeout('writeUpgradeAsync()', 2000);
619N/A }
619N/A
619N/A function upgradeAcceptChecked(){
619N/A document.getElementById("upgrade-accept-license-button").disabled = document.getElementById("upgrade-accept-check").checked ? false : true;
619N/A }
486N/A
486N/A function upgradeAcceptLicense() {
486N/A YAHOO.util.Dom.addClass('upgrade', 'license-accepted');
486N/A }
486N/A</script>
486N/A<div id="upgrade" style="width: 810px; background-color: #FFFFFF" class="clearfix">
619N/A <div class="header">$page.getLocalizedString("upgrade.main.title")</div>
486N/A #if ($error)
619N/A <div id="content" class="tabContent">
619N/A <div class="bodyPopup borderPopUpGray" align="center" style="background:#FFFFFF">
486N/A <p class="blueSmall">$page.getLocalizedString("upgrade.init.error")</p>
486N/A <button id="cancelButton" type="button" onclick="cancelUpgrade();">$page.getLocalizedString("cancel.button")</button>
619N/A </div>
619N/A </div>
619N/A #else
619N/A <div class="license inner-license">
619N/A <pre id="upgrade-license-message"> </pre>
619N/A <div class="accept-check-container clearfix">
619N/A <input type="checkbox" onchange="upgradeAcceptChecked();" name="upgrade-accept-check" id="upgrade-accept-check" tabindex=1/>
619N/A <label for="upgrade-accept-check" >I accept the license agreement</label>
486N/A </div>
486N/A </div>
619N/A <div id="content" class="tabContent summary">
486N/A <div style="margin: 10px 23px">
486N/A $page.getLocalizedString("upgrade.current.version") $currentVersion <br/>
486N/A $page.getLocalizedString("upgrade.new.version") $newVersion
486N/A </div>
486N/A <div style="overflow: auto; border: solid 1px; height: 180px; width: 90%; margin: 0 auto;">
486N/A $changelist
486N/A </div>
486N/A </div>
486N/A <div id="upgradeFooter" style="padding-bottom: 10px" class="clearfix">
486N/A
486N/A <div class="col1">&nbsp;</div>
486N/A
486N/A <div align="left" style="float:left; margin-left: 23px" class="license">
486N/A <button id="upgrade-accept-license-button" type="button" onclick="upgradeAcceptLicense();" class="buttonblue license" disabled tabindex=2>Continue</button>
486N/A </div>
486N/A <div class="summary" style="float:left; margin-left: 23px" >
486N/A <div style="float: left;" >
486N/A <button id="upgradeButton" type="button" onclick="doUpgrade()" tabindex=3>$page.getLocalizedString("upgrade.button")</button>
486N/A </div>
486N/A
486N/A <div style="float:left; margin-left: 23px">
486N/A <button id="saveReportButton" type="button" onclick="saveReport();" class="buttonblue" tabindex=4>$page.getLocalizedString("save.report.button")</button>
486N/A </div>
486N/A
486N/A </div>
486N/A
486N/A <div style="float: right; margin-right: 23px">
536N/A <button id="cancelButton" type="button" onclick="cancelUpgrade();" tabindex=5>$page.getLocalizedString("cancel.button")</button>
536N/A </div>
536N/A </div>
536N/A
536N/A #end
486N/A</div>