mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-26 07:46:31 +01:00
Ricardo118 patch collection (#2235)
* Update collections.js * compile js
This commit is contained in:
@@ -218,7 +218,7 @@ export default class CollectionsField {
|
||||
? observedValue
|
||||
: index);
|
||||
|
||||
['name', 'data-grav-field-name', 'for', 'id', 'data-grav-file-settings', 'data-file-post-add', 'data-file-post-remove', 'data-grav-array-name'].forEach((prop) => {
|
||||
['name', 'data-grav-field-name', 'for', 'id', 'data-grav-file-settings', 'data-file-post-add', 'data-file-post-remove', 'data-grav-array-name', 'data-grav-elements'].forEach((prop) => {
|
||||
item.find('[' + prop + '], [_' + prop + ']').each(function() {
|
||||
let element = $(this);
|
||||
let indexes = [];
|
||||
|
||||
4
themes/grav/js/admin.min.js
vendored
4
themes/grav/js/admin.min.js
vendored
@@ -5869,7 +5869,7 @@ var CollectionsField = /*#__PURE__*/function () {
|
||||
var hasCustomKey = observed.length;
|
||||
var currentKey = item.data('collection-key-backup');
|
||||
item.attr('data-collection-key', hasCustomKey ? observedValue : index);
|
||||
['name', 'data-grav-field-name', 'for', 'id', 'data-grav-file-settings', 'data-file-post-add', 'data-file-post-remove', 'data-grav-array-name'].forEach(function (prop) {
|
||||
['name', 'data-grav-field-name', 'for', 'id', 'data-grav-file-settings', 'data-file-post-add', 'data-file-post-remove', 'data-grav-array-name', 'data-grav-elements'].forEach(function (prop) {
|
||||
item.find('[' + prop + '], [_' + prop + ']').each(function () {
|
||||
var element = external_jQuery_default()(this);
|
||||
var indexes = [];
|
||||
@@ -15265,4 +15265,4 @@ module.exports = jQuery;
|
||||
/******/ Grav = __webpack_exports__;
|
||||
/******/
|
||||
/******/ })()
|
||||
;
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user