File manager - Edit - /usr/local/cpanel/whostmgr/docroot/templates/mod_security/views/addVendorController.min.js
Back
define(["angular","lodash","cjt/util/locale","uiBootstrap","cjt/directives/autoFocus","cjt/directives/spinnerDirective","cjt/directives/validationItemDirective","cjt/directives/validationContainerDirective","cjt/services/alertService","app/services/vendorService","app/directives/ruleVendorUrlValidator","cjt/filters/notApplicableFilter"],(function(angular,_,LOCALE){"use strict";var app=angular.module("App");var controller=app.controller("addVendorController",["$scope","$filter","spinnerAPI","alertService","vendorService",function($scope,$filter,spinnerAPI,alertService,vendorService){$scope.disableForm=function(form){return form.$pristine||form.$dirty&&form.$invalid||$scope.loading};$scope.load=function(url){alertService.clear();spinnerAPI.start("loadingSpinner");$scope.loading=true;return vendorService.loadVendor(url).then((function(vendor){angular.extend($scope.vendor,vendor);$scope.vendor.isLoaded=true;$scope.vendor.report_url=$filter("na")($scope.vendor.report_url)}),(function(error){alertService.add({type:"danger",message:_.escape(error),id:"errorLoadVendorConfig"});$scope.vendor.isLoaded=false})).finally((function(){spinnerAPI.stop("loadingSpinner");$scope.loading=false}))};$scope.save=function(url){alertService.clear();spinnerAPI.start("savingSpinner");return vendorService.saveVendor(url).then((function(vendor){alertService.add({type:"success",message:LOCALE.maketext("You have successfully added “[_1]” to the vendor configuration list.",vendor.name),id:"successSaveVendorConfig"});$scope.loadView("/vendors")}),(function(error){alertService.add({type:"danger",message:_.escape(error),id:"errorSaveVendorConfig"});$scope.scrollTo("top")})).finally((function(){spinnerAPI.stop("savingSpinner")}))};$scope.cancel=function(){alertService.clear();$scope.loadView("vendors")};$scope.clearForm=function(){$scope.vendor={enabled:true,isLoaded:false};alertService.clear()};$scope.showSSLwarning=false;$scope.vendorURLchange=function(url){var show=false;var matches=/^(https?):\/\//.exec(url);if(matches&&matches[1]==="http"){show=true}$scope.showSSLwarning=show};$scope.isEditor=false;$scope.clearForm()}]);return controller}));
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings