/var/www/myprog.com.ua/admin/public/js
NameSizeModeActions
controls/-0755rm
counter/-0755rm
plugins/-0755rm
.DS_Store102440644editdlrm
bootstrap.js675890644editdlrm
color_prettify.js18230644editdlrm
datatables.min.js1929740644editdlrm
datepicker_ru.js10100644editdlrm
device.min.js26050644editdlrm
firebugx.js3660755editdlrm
html5imageupload.js348060644editdlrm
index.js27080644editdlrm
jquery-1.7.min.js940200755editdlrm
jquery-1.11.2.min.js959310644editdlrm
jquery-ui-1.8.16.custom.min.js1598380755editdlrm
jquery-ui.min.js2404270644editdlrm
jquery.cookie.js17260644editdlrm
jquery.event.drag-2.2.js128320755editdlrm
jquery.event.drop-2.2.js94200755editdlrm
jquery.jsonp-2.4.min.js18530755editdlrm
jquery.maskedinput.min.js42740644editdlrm
jquery.paginator.src.js93780644editdlrm
jquery.pickmeup.js335150644editdlrm
jquery.simulate.js41850755editdlrm
jquery.sparkline.min.js228670755editdlrm
md5.js122950644editdlrm
prettify.js136310644editdlrm
qunit.js290430755editdlrm
slick.columnpicker.js45220755editdlrm
slick.core.js132840755editdlrm
slick.dataview.js333530755editdlrm
slick.editors.js213560755editdlrm
slick.formatters.js61850755editdlrm
slick.grid.js1158300755editdlrm
slick.groupitemmetadataprovider.js48850755editdlrm
slick.pager.js50230755editdlrm
slick.remotemodel.js42760755editdlrm
swfobject.js102200644editdlrm
template.js190930644editdlrm
typeahead.js714170644editdlrm
web_socket.js129610644editdlrm
web_socket_use.js29170644editdlrm
Edit: /var/www/myprog.com.ua/admin/public/js/slick.groupitemmetadataprovider.js (4885B)
(function ($) { $.extend(true, window, { Slick: { Data: { GroupItemMetadataProvider: GroupItemMetadataProvider } } }); /*** * Provides item metadata for group (Slick.Group) and totals (Slick.Totals) rows produced by the DataView. * This metadata overrides the default behavior and formatting of those rows so that they appear and function * correctly when processed by the grid. * * This class also acts as a grid plugin providing event handlers to expand & collapse groups. * If "grid.registerPlugin(...)" is not called, expand & collapse will not work. * * @class GroupItemMetadataProvider * @module Data * @namespace Slick.Data * @constructor * @param options */ function GroupItemMetadataProvider(options) { var _grid; var _defaults = { groupCssClass: "slick-group", groupTitleCssClass: "slick-group-title", totalsCssClass: "slick-group-totals", groupFocusable: true, totalsFocusable: false, toggleCssClass: "slick-group-toggle", toggleExpandedCssClass: "expanded", toggleCollapsedCssClass: "collapsed", enableExpandCollapse: true, groupFormatter: defaultGroupCellFormatter, totalsFormatter: defaultTotalsCellFormatter }; options = $.extend(true, {}, _defaults, options); function defaultGroupCellFormatter(row, cell, value, columnDef, item) { if (!options.enableExpandCollapse) { return item.title; } var indentation = item.level * 15 + "px"; return "" + "" + "" + item.title + ""; } function defaultTotalsCellFormatter(row, cell, value, columnDef, item) { return (columnDef.groupTotalsFormatter && columnDef.groupTotalsFormatter(item, columnDef)) || ""; } function init(grid) { _grid = grid; _grid.onClick.subscribe(handleGridClick); _grid.onKeyDown.subscribe(handleGridKeyDown); } function destroy() { if (_grid) { _grid.onClick.unsubscribe(handleGridClick); _grid.onKeyDown.unsubscribe(handleGridKeyDown); } } function handleGridClick(e, args) { var item = this.getDataItem(args.row); if (item && item instanceof Slick.Group && $(e.target).hasClass(options.toggleCssClass)) { var range = _grid.getRenderedRange(); this.getData().setRefreshHints({ ignoreDiffsBefore: range.top, ignoreDiffsAfter: range.bottom + 1 }); if (item.collapsed) { this.getData().expandGroup(item.groupingKey); } else { this.getData().collapseGroup(item.groupingKey); } dataProvider.updateTotals(); this.resizeCanvas() e.stopImmediatePropagation(); e.preventDefault(); } } // TODO: add -/+ handling function handleGridKeyDown(e, args) { if (options.enableExpandCollapse && (e.which == $.ui.keyCode.SPACE)) { var activeCell = this.getActiveCell(); if (activeCell) { var item = this.getDataItem(activeCell.row); if (item && item instanceof Slick.Group) { var range = _grid.getRenderedRange(); this.getData().setRefreshHints({ ignoreDiffsBefore: range.top, ignoreDiffsAfter: range.bottom + 1 }); if (item.collapsed) { this.getData().expandGroup(item.groupingKey); } else { this.getData().collapseGroup(item.groupingKey); } e.stopImmediatePropagation(); e.preventDefault(); } } } } function getGroupRowMetadata(item) { return { selectable: false, focusable: options.groupFocusable, cssClasses: options.groupCssClass, columns: { 0: { colspan: "*", formatter: options.groupFormatter, editor: null } } }; } function getTotalsRowMetadata(item) { return { selectable: false, focusable: options.totalsFocusable, cssClasses: options.totalsCssClass, formatter: options.totalsFormatter, editor: null }; } function getItemMetadata(item) { console.log("getItemMetadata"); return { selectable: true, editor: null }; } return { "init": init, "destroy": destroy, "getGroupRowMetadata": getGroupRowMetadata, "getTotalsRowMetadata": getTotalsRowMetadata }; } })(jQuery);