File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/components/bitrix/main.ui.grid/templates/.default/src/js/pagesize.js
Back
;(function() { 'use strict'; BX.namespace('BX.Grid'); BX.Grid.Pagesize = function(parent) { this.parent = null; this.init(parent); }; BX.Grid.Pagesize.prototype = { init: function(parent) { this.parent = parent; BX.addCustomEvent('Dropdown::change', BX.proxy(this.onChange, this)); }, destroy: function() { BX.removeCustomEvent('Dropdown::change', BX.proxy(this.onChange, this)); }, onChange: function(id, event, item, dataValue, value) { var self = this; if (id === this.parent.getContainerId() + '_' + this.parent.settings.get('pageSizeId')) { if (value >= 0) { this.parent.tableFade(); this.parent.getUserOptions().setPageSize(value, function() { self.parent.reloadTable(); BX.onCustomEvent(self.parent.getContainer(), 'Grid::pageSizeChanged', [self.parent]); }); } } } }; })();
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.25 |
proxy
|
phpinfo
|
Settings