diff --git a/pom.xml b/pom.xml index 1f0dbb8..5ba0f92 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.englishtown stash-hook-mirror - 1.5.0 + 1.6.0 Englishtown @@ -27,9 +27,9 @@ UTF-8 - 2.4.1 - 2.4.1 - 4.2.3 + 2.6.0 + 2.6.0 + 4.2.5 1.1.1 4.10 diff --git a/src/main/resources/static/mirror-repository-hook.css b/src/main/resources/static/mirror-repository-hook.css deleted file mode 100644 index 553adaf..0000000 --- a/src/main/resources/static/mirror-repository-hook.css +++ /dev/null @@ -1,3 +0,0 @@ -.et-remove-button { - margin-left: 5px !important; -} \ No newline at end of file diff --git a/src/main/resources/static/mirror-repository-hook.js b/src/main/resources/static/mirror-repository-hook.js index 8a1126c..ab078ca 100644 --- a/src/main/resources/static/mirror-repository-hook.js +++ b/src/main/resources/static/mirror-repository-hook.js @@ -27,7 +27,7 @@ define('et/hook/mirror', ['jquery', 'exports'], function ($, exports) { function addRemoveButton() { // Select all fieldset groups that don't have a 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-remove-button').click(function (e) { diff --git a/src/main/resources/static/mirror-repository-hook.soy b/src/main/resources/static/mirror-repository-hook.soy index 6312e3e..d8250a7 100644 --- a/src/main/resources/static/mirror-repository-hook.soy +++ b/src/main/resources/static/mirror-repository-hook.soy @@ -21,14 +21,15 @@ {/foreach} // Button to add additional mirrors - {call aui.form.button} + {call stash.buttons.button} {param id: 'et-add-button' /} - {param text: 'Add Mirror' /} + {param buttonText: 'Add Mirror' /} + {param extraAttributes: 'type=button' /} {/call} // Call init method with subview callback {/template}