File manager - Edit - /usr/local/cpanel/whostmgr/docroot/templates/hulkd/views/countriesController.min.js
Back
define(["angular","lodash","cjt/util/locale","app/directives/countryCodesTableDirective","cjt/decorators/growlDecorator","app/services/HulkdDataSource"],(function(angular,_,LOCALE){var app=angular.module("App");var controller=app.controller("countriesController",["$scope","growl","HulkdDataSource","COUNTRY_CONSTANTS","COUNTRY_CODES","XLISTED_COUNTRIES",function($scope,$growl,$service,COUNTRY_CONSTANTS,COUNTRY_CODES,XLISTED_COUNTRIES){function _parseCountries(countryCodes,xlistedCountries){return countryCodes.map((function(countryCode){countryCode.status=xlistedCountries[countryCode.code]||COUNTRY_CONSTANTS.UNLISTED;return countryCode}))}$scope.countries=_parseCountries(COUNTRY_CODES,XLISTED_COUNTRIES);var startingGrowl,successGrowl;$scope.countriesUpdated=function(whitelist,blacklist){if(successGrowl){successGrowl.destroy()}startingGrowl=$growl.info(LOCALE.maketext("Updating the country whitelist and blacklist …"));return $service.set_cphulk_config_keys({country_whitelist:whitelist.sort().join(","),country_blacklist:blacklist.sort().join(",")}).then((function(xlistedCountries){XLISTED_COUNTRIES=xlistedCountries;$scope.countries=_parseCountries(COUNTRY_CODES,xlistedCountries);startingGrowl.destroy();successGrowl=$growl.success(LOCALE.maketext("Country whitelist and blacklist updated."))}))}}]);return controller}));
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings