File manager - Edit - /usr/local/cpanel/whostmgr/docroot/templates/cpanel_customization/views/publicContactController.min.js
Back
(function(){"use strict";define(["lodash","angular","cjt/util/locale","uiBootstrap","app/services/contactService","cjt/decorators/growlAPIReporter","app/services/savedService"],(function(_,angular,LOCALE){var app=angular.module("customize.views.publicContactController",["customize.services.contactService","customize.services.savedService"]);app.value("PAGE",PAGE);var PAGEDATA=PAGE.data;var SAVED_PCDATA=angular.copy(PAGEDATA.public_contact);var controller=app.controller("publicContactController",["$scope","contactService","savedService","growl","growlMessages",function($scope,contactService,savedService,growl,growlMessages){angular.extend($scope,{has_root:!!PAGEDATA.has_root,pcdata:angular.copy(SAVED_PCDATA),doSubmit:function doSubmit(form){var scope=this;growlMessages.destroyAllMessages();return contactService.setPublicContact(this.pcdata).then((function(){angular.extend(SAVED_PCDATA,scope.pcdata);form.$setPristine();savedService.update("public-contact",false);growl.success(LOCALE.maketext("The public can now view the information that you provided in this form."))}))},resetForm:function resetForm(form){growlMessages.destroyAllMessages();angular.extend(this.pcdata,SAVED_PCDATA);form.$setPristine()}});$scope.$watchGroup(["pcdata.name","pcdata.url"],(function(){if(!$scope.public_contact_form){return}savedService.update("public-contact",$scope.public_contact_form.$dirty)}),true)}]);return controller}))})();
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.05 |
proxy
|
phpinfo
|
Settings