123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- var globalOptionsInfo = null;
-
- globalYui.one('#configureClusterAdvancedSubmitButtonId').on('click',function (e) {
- var retval = checkPasswordCorrectness();
- if (retval.passwdMatched !== true) {
- setFormStatus(retval.errorString, true, true);
- document.getElementById(retval.focusOn).scrollIntoView();
- return;
- }
- cleanupClassesForPasswordErrors();
-
- clearFormStatus();
- clearErrorReasons(opts);
- var opts = generateUserOpts();
- e.target.set('disabled', true);
- var url = "../php/frontend/configureServices.php?clusterName="+globalOptionsInfo.clusterName;
- var requestData = opts;
- var submitButton = e.target;
- var thisScreenId = "#configureClusterAdvancedCoreDivId";
- var nextScreenId = "#deployCoreDivId";
- var nextScreenRenderFunction = renderDeploy;
- submitDataAndProgressToNextScreen(url, requestData, submitButton, thisScreenId, nextScreenId, nextScreenRenderFunction, handleConfigureServiceErrors);
- });
- // register an event handler for the password fields
- globalYui.one("#configureClusterAdvancedDynamicRenderDivId").delegate(
- {
- 'keyup' : function (passwordEvent) {
- checkPasswordCorrectness();
- }
- },
- "input[type=password]"
- );
- function renderConfigureServicesInternal (optionsInfo) {
- globalPasswordsArray = [];
- var optionsSummary = constructDOM(optionsInfo);
-
- globalYui.one("#configureClusterAdvancedDynamicRenderDivId").setContent( optionsSummary );
- hideLoadingImg();
- globalYui.one("#configureClusterAdvancedCoreDivId").setStyle("display", "block");
- }
- function renderOptionsPage (optionsInfo) {
- globalOptionsInfo = optionsInfo;
- var inputUrl = "../php/frontend/fetchClusterServices.php?clusterName=" + optionsInfo.clusterName + "&getConfigs=true";
- executeStage(inputUrl, renderConfigureServicesInternal);
- }
|