options.htm revision 99690585c1f4c3ffb83c50bcb5cc0725cadff899
409N/A<link rel="stylesheet" type="text/css" href="$context/assets/css/Specific/optionUpgrade.css" />
49N/A var $ = YAHOO.util.Dom.get;
49N/A if ( response.responseText == "true" ) {
51N/A //in actuality, this usually happens very fast, so put a delay when removing the testUrlPanel.
873N/A //if we don't do this, the window blinks and looks unsightly, so we actually impose an unnecessary
95N/A setTimeout("YAHOO.sun.identity.config.options.upgrading.hide()", 1500);
873N/A setTimeout("YAHOO.sun.identity.config.options.upgradeComplete.show()", 1500);
873N/A //TODO - show a specific (nice looking) error message dialog that explains why the upgrade failed.
873N/A alert( "Unexpected error: [" + response.responseText + "]. Please contact your System " +
49N/A YAHOO.sun.identity.config.options.upgrade = new YAHOO.widget.Panel("upgrade", { fixedcenter: false, modal: true, close: true, visible:false, constraintoviewport:true });
49N/A YAHOO.util.Dom.removeClass('upgrade', 'license-accepted');
49N/A document.getElementById("upgrade-accept-check").checked = false;
49N/A document.getElementById("upgrade-accept-license-button").disabled = true;
51N/A YAHOO.util.Dom.removeClass('upgradeLink', 'disabled');
72N/A YAHOO.util.Event.addListener("upgradeLink", "click", showUpgradePanel );
315N/A var formError = (response != null && (response.getResponseHeader["formError"] != null));
49N/A if ( window.frames['progressIframe'] ) {
49N/A AjaxUtils.doPost("defaultSummary", "$context/config/defaultSummary.htm?" + getLocale(), AjaxUtils.serializeForm("defaultForm"), onDefaultSummarySuccess, onDefaultSummaryFailure);
49N/A var queryString = window.top.location.search.substring(1);
281N/A if (queryString.length > 0) {
315N/A var idx = queryString.indexOf(locale);
315N/A idx += locale.length;
281N/A var idx1 = queryString.indexOf('&', idx);
49N/A idx1 = queryString.length;
315N/A localeValue = queryString.substring (idx, idx1);
873N/A YAHOO.sun.identity.config.options.defaultSummary = new YAHOO.widget.Panel("defaultSummary", { width:"810px", fixedcenter: false, modal: true, close: true, visible:false, constraintoviewport:true });
873N/A YAHOO.util.Dom.removeClass('defaultSummary', 'license-accepted');
873N/A document.getElementById("accept-check").checked = false;
51N/A document.getElementById("acceptLicenseButton").disabled = true;
873N/A YAHOO.util.Dom.removeClass('DemoConfiguration', 'disabled');
1038N/A YAHOO.util.Event.addListener("DemoConfiguration", "click", setOptionOne );
873N/A YAHOO.sun.identity.config.options.wizard = new YAHOO.widget.Panel("wizard", { fixedcenter: false, modal: true, close: true, visible:false, constraintoviewport:true });
873N/A YAHOO.util.Dom.removeClass('wizard', 'license-accepted');
873N/A document.getElementById("wizard-accept-check").checked = false;
873N/A document.getElementById("wizard-accept-license-button").disabled = true;
873N/A YAHOO.util.Dom.removeClass('CreateNewConf', 'disabled');
873N/A YAHOO.util.Event.addListener("CreateNewConf", "click", setOptionTwo );
873N/A AjaxUtils.call( "$context$path?actionLink=resetSessionAttributes", onSetOption);
51N/A if (response.responseText === "true") {
315N/A document.getElementById("setupMessage").innerHTML = errorImage + " " + response.responseText;
57N/A var obj = document.getElementById("progressControl");
57N/A var obj1 = document.getElementById("progressDiv");
57N/A obj.innerHTML = "Show Progress";
57N/A obj1.style.display ="none";
315N/A obj.innerHTML = "Hide progress log";
315N/A obj1.style.display="block";
873N/A YAHOO.util.Dom.addClass('options-container', 'license-loaded');
315N/A licenseTXT = response.responseText;
873N/A AjaxUtils.load('upgradeContainer', "$context/config/upgrade/upgrade.htm?" + getLocale(), renderUpgradePanel);
51N/A AjaxUtils.load('defaultSummaryContainer', "$context/config/defaultSummary.htm?" + getLocale(), renderDefaultSummary);
315N/A AjaxUtils.load('wizardContainer', "$context/config/wizard/wizard.htm?" + getLocale(), renderWizard);
281N/A YAHOO.sun.identity.config.options.inProgress = new YAHOO.widget.Panel("inProgress", { width:"700px", fixedcenter: false, modal:true, close: false, visible:false, constraintoviewport:true });
384N/A YAHOO.sun.identity.config.options.confComplete = new YAHOO.widget.Panel("confComplete", { fixedcenter: false, modal:true, close: false, visible:false, constraintoviewport:true });
72N/A YAHOO.sun.identity.config.options.upgradeComplete = new YAHOO.widget.Panel("upgradeComplete", { fixedcenter: true, modal: true, close: false, visible:false, constraintoviewport:true });
72N/A YAHOO.sun.identity.config.options.upgrading = new YAHOO.widget.Panel("upgrading", { width:"240px", fixedcenter:true, close:false, draggable:false, zindex:4, modal:true, visible:false });
72N/A YAHOO.sun.identity.config.options.upgrading.setHeader("Upgrading configuration. Please wait...");
81N/A YAHOO.sun.identity.config.options.upgrading.setBody('<img src="$context/assets/images/rel_interstitial_loading.gif" />');
72N/A YAHOO.sun.identity.config.options.cannotContinue = new YAHOO.widget.Panel("cannotContinue", { fixedcenter: true, modal: true, close: false, visible:false, constraintoviewport:true });
72N/A YAHOO.util.Event.onDOMReady(init);
315N/A <span class="yellowBlock">$page.getLocalizedString("upgrade.available.option"):<br/><span class="currentVersion">$currentVersion</span></span>
941N/A <a id="upgradeLink" class="blue pointer disabled">$page.getLocalizedString("upgrade.link")</a>
941N/A <a id="DemoConfiguration" class="blue pointer disabled" >$page.getLocalizedString("configuration.options.option1.link")</a>
235N/A <a id="CreateNewConf" class="blue pointer disabled" >$page.getLocalizedString("configuration.options.option2.link")</a>
289N/A <a id="launchConsoleLink2" class="blueSmall pointer">$page.getLocalizedString("launch.console.link")</a>
227N/A <iframe id="progressIframe" name="progressIframe" src="$context/assets/images/rel_interstitial_loading.gif" height=220 width=600 scrolling="no" frameborder="0">This browser cannot dipslay iframes.</iframe>
271N/A <a href="#" onClick="YAHOO.sun.identity.config.options.inProgress.hide(); return false;">$page.getLocalizedString("return.config.link")</a>
136N/A <p align="center" class="blueSmall">$page.getLocalizedString("upgrade.restart.container")</p>
95N/A <a href="#" onclick="launchConsole(); return false">$page.getLocalizedString("go.to.login.screen")</a>