mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 17:56:07 +01:00
Refreshing the container to allow multiple instances on the same page
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
},
|
||||
addField: function (event, element) {
|
||||
element = $(event.target);
|
||||
this.container = element.closest('[data-grav-dynfields]');
|
||||
var div = $('<div class="form-row" />').html(this.layout());
|
||||
div.insertAfter(element.parent('div'));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user