mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-07 05:45:53 +01:00
Add missing event parameter. refs #6
This commit is contained in:
@@ -85,21 +85,21 @@
|
|||||||
return formValues;
|
return formValues;
|
||||||
};
|
};
|
||||||
|
|
||||||
ArrayField.prototype.add = function() {
|
ArrayField.prototype.add = function(event) {
|
||||||
$(this._getNewField()).insertAfter($(event.target).closest('[data-grav-array-type="row"]'));
|
$(this._getNewField()).insertAfter($(event.target).closest('[data-grav-array-type="row"]'));
|
||||||
if (this.isValueOnly()) {
|
if (this.isValueOnly()) {
|
||||||
this.refreshAll();
|
this.refreshAll();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ArrayField.prototype.remove = function() {
|
ArrayField.prototype.remove = function(event) {
|
||||||
$(event.target).closest('[data-grav-array-type="row"]').remove();
|
$(event.target).closest('[data-grav-array-type="row"]').remove();
|
||||||
if (this.isValueOnly()) {
|
if (this.isValueOnly()) {
|
||||||
this.refreshAll();
|
this.refreshAll();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ArrayField.prototype.update = function() {
|
ArrayField.prototype.update = function(event) {
|
||||||
var keyField = $(event.target),
|
var keyField = $(event.target),
|
||||||
valueField = keyField.closest('[data-grav-array-type="row"]').find('[data-grav-array-type="value"]');
|
valueField = keyField.closest('[data-grav-array-type="row"]').find('[data-grav-array-type="value"]');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user