File manager - Edit - /usr/local/cpanel/whostmgr/docroot/templates/email_deliverability/decorators/paginationDecorator.min.js
Back
define(["angular","cjt/core","cjt/util/locale","uiBootstrap"],(function(angular,CJT,LOCALE){"use strict";var module;var MODULE_NAMESPACE="cpanel.emailAccounts";try{module=angular.module(MODULE_NAMESPACE)}catch(e){module=angular.module(MODULE_NAMESPACE,["ui.bootstrap.pagination"])}module.config(["$provide",function($provide){$provide.decorator("uibPaginationDirective",["$delegate",function($delegate){var TEMPLATE_PATH="decorators/pagination.phtml";var RELATIVE_PATH="email_accounts/"+TEMPLATE_PATH;var uiPaginationDirective=$delegate[0];var updateIds=function(pages,id){if(!pages){return}pages.forEach((function(page){page.id=id+"_"+page.text}))};var updateAriaLabel=function(pages){if(!pages){return}pages.forEach((function(page){page.ariaLabel=LOCALE.maketext("Go to page “[_1]”.",page.text)}))};var updateCurrentSelectedText=function(page,totalPages){return LOCALE.maketext("Page [numf,_1] of [numf,_2]",page,totalPages)};uiPaginationDirective.templateUrl=CJT.config.debug?CJT.buildFullPath(RELATIVE_PATH):TEMPLATE_PATH;var linkFn=uiPaginationDirective.link;uiPaginationDirective.compile=function(){return function(scope,element,attrs,ctrls){var paginationCtrl=ctrls[0];linkFn.apply(this,arguments);scope.parentId=attrs.id;scope.ariaLabels={title:LOCALE.maketext("Pagination"),firstPage:LOCALE.maketext("Go to first page."),previousPage:LOCALE.maketext("Go to previous page."),nextPage:LOCALE.maketext("Go to next page."),lastPage:LOCALE.maketext("Go to last page.")};scope.updateCurrentSelectedText=updateCurrentSelectedText;var render=paginationCtrl.render;paginationCtrl.render=function(){render.apply(paginationCtrl);updateIds(scope.pages,scope.parentId);updateAriaLabel(scope.pages)}}};return $delegate}])}]);return{namespace:MODULE_NAMESPACE}}));
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.05 |
proxy
|
phpinfo
|
Settings