mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-11 07:46:05 +01:00
Fixed JS to match styling
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
},
|
||||
addField: function (event, element) {
|
||||
element = $(event.target);
|
||||
var div = $('<div />').html(this.layout());
|
||||
var div = $('<div class="form-row" />').html(this.layout());
|
||||
div.insertAfter(element.parent('div'));
|
||||
},
|
||||
remField: function (event, element) {
|
||||
@@ -27,7 +27,7 @@
|
||||
},
|
||||
layout: function () {
|
||||
var name = this.getName();
|
||||
return '' + ' <input type="text" value="" placeholder="/Your/Alias" />' + ' <input type="text" name="' + name + '[]" value="" placeholder="/Your/Real/Route" />' + ' <span data-grav-remfield class="button fa fa-minus"></span> <span data-grav-addfield class="button fa fa-plus"></span>' + '';
|
||||
return '' + ' <input type="text" value="" placeholder="/Your/Alias" />' + ' <input type="text" name="' + name + '[]" value="" placeholder="/Your/Real/Route" />' + ' <span data-grav-remfield class="fa fa-minus"></span> <span data-grav-addfield class="fa fa-plus"></span>' + '';
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user