File manager - Edit - /usr/local/cpanel/whostmgr/docroot/templates/support/create_support_ticket/views/supportInfoController.min.js
Back
define(["angular","cjt/util/locale","cjt/directives/alert"],(function(angular,LOCALE){"use strict";var app=angular.module("whm.createSupportTicket");return app.controller("supportInfoController",["$scope","pageState","wizardApi","ticketService",function($scope,pageState,wizardApi,ticketService){if(!wizardApi.verifyStep(/supportinfo$/)){return}$scope.supportinfo={};$scope.uiState={};$scope.uiState.loading=true;wizardApi.disableNextButton();var gotoNextStep=function(){$scope.uiState.loading=false;wizardApi.enableNextButton();if(pageState.tos&&pageState.tos.accepted){wizardApi.loadView("/grant",null,{clearAlerts:true})}else{wizardApi.loadView("/tos",null,{clearAlerts:true})}return true};var previous=function(){wizardApi.enableNextButton();wizardApi.reset();return false};var next=function(){gotoNextStep();return true};wizardApi.configureStep({nextFn:next,previousFn:previous});$scope.toggleNext=function(){if($scope.cpanelSupportWarning){wizardApi.enableNextButton()}else{wizardApi.disableNextButton()}};$scope.loadSupportInformation=function(){return ticketService.fetchSupportInfo().then((function(result){$scope.supportinfo=result.data;$scope.uiState.loading=false;if($scope.supportinfo.data.company_name===""||$scope.supportinfo.data.pub_tech_contact===""||$scope.supportinfo.data.pub_tech_contact.indexOf("tickets.cpanel.net")>-1){gotoNextStep()}})).catch((function(error){return gotoNextStep()}))};$scope.loadSupportInformation()}])}));
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings