|
|
@ -27,7 +27,7 @@ define('et/hook/mirror', ['jquery', 'exports'], function ($, exports) { |
|
|
|
function addRemoveButton() { |
|
|
|
function addRemoveButton() { |
|
|
|
// Select all fieldset groups that don't have a remove button
|
|
|
|
// Select all fieldset groups that don't have a remove button
|
|
|
|
var group = $(".et-mirror-group").not(":has(.et-remove-button)"); |
|
|
|
var group = $(".et-mirror-group").not(":has(.et-remove-button)"); |
|
|
|
var html = createButton({name: 'et-remove-button', text: 'Remove', extraClasses: 'et-remove-button'}); |
|
|
|
var html = createButton({buttonText: 'Remove', extraClasses: 'et-remove-button add-hook-button', extraAttributes: 'type=button'}); |
|
|
|
group.find('.et-mirror-repo input').after(html); |
|
|
|
group.find('.et-mirror-repo input').after(html); |
|
|
|
|
|
|
|
|
|
|
|
group.find('.et-remove-button').click(function (e) { |
|
|
|
group.find('.et-remove-button').click(function (e) { |
|
|
|