upgrade.htm revision a4544a5a0e622ef69e38641f87ab1b5685e05911
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster ~ Copyright 2014-2015 ForgeRock AS.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster ~ The contents of this file are subject to the terms of the Common Development and
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster ~ Distribution License (the License). You may not use this file except in compliance with the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster ~ You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster ~ specific language governing permission and limitations under the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster ~ When distributing Covered Software, include this CDDL Header Notice in each file and include
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster ~ the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster ~ Header, with the fields enclosed by brackets [] replaced by your own identifying
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster ~ information: "Portions copyright [year] [name of copyright owner]".
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster ~ Portions Copyrighted 2015 Nomura Research Institute, Ltd.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster YAHOO.namespace("sun.identity.config.options.upgrade");
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster //convenient alias:
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster function cancelUpgrade() {
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster YAHOO.sun.identity.config.options.upgrade.hide();
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster function saveReport() {
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster window.open("$context$path?actionLink=saveReport", "Download");
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster function writeUpgradeAsync() {
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster var licenseAccepted = document.getElementById("upgrade-accept-check").checked ? "true" : "false";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster AjaxUtils.call("$context$path?actionLink=doUpgrade&ie7fix=" + ie7fix + "&acceptLicense=" + licenseAccepted, writeConfigResponse);
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster function doUpgrade() {
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster document.getElementById("returnToConfig").style.display = "none";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster document.getElementById("setupMessage").innerHTML = "";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster YAHOO.sun.identity.config.options.inProgress.show();
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster var fr1 = window.frames['progressIframe'];
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster fr1.location = "$context/upgrade/setUpgradeProgress";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster setTimeout('writeUpgradeAsync()', 2000);
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster function upgradeAcceptChecked(){
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster document.getElementById("upgrade-accept-license-button").disabled = document.getElementById("upgrade-accept-check").checked ? false : true;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster function upgradeAcceptLicense() {
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster YAHOO.util.Dom.addClass('upgrade', 'license-accepted');
<button id="cancelButton" type="button" onclick="cancelUpgrade();">$page.getLocalizedString("cancel.button")</button>
<input type="checkbox" onchange="upgradeAcceptChecked();" name="upgrade-accept-check" id="upgrade-accept-check" tabindex=1/>
<button id="upgrade-accept-license-button" type="button" onclick="upgradeAcceptLicense();" class="buttonblue license" disabled tabindex=2>Continue</button>
<button id="upgradeButton" type="button" onclick="doUpgrade()" tabindex=3>$page.getLocalizedString("upgrade.button")</button>
<button id="cancelButton" type="button" onclick="cancelUpgrade();" tabindex=5>$page.getLocalizedString("cancel.button")</button>
<button id="saveReportButton" type="button" onclick="saveReport();" class="buttonblue" tabindex=4>$page.getLocalizedString("save.report.button")</button>