Browse Source

add a wrapped div to be independent of changes from atlassian

pull/55/head
Hansjörg Oppermann 7 years ago
parent
commit
58c1b1fbf9
  1. 2
      src/main/resources/static/mirror-repository-hook.js
  2. 2
      src/main/resources/static/mirror-repository-hook.soy

2
src/main/resources/static/mirror-repository-hook.js

@ -6,7 +6,7 @@ define('et/hook/mirror', ['jquery', 'exports'], function ($, exports) {
var currIndex, index = 0, name, html;
// Determine the current index from the last password input
name = $('div.html-contents input:password').last().attr("name");
name = $('div.et-mirror-contents input:password').last().attr("name");
if (name && name.length >= 8) {
currIndex = parseInt(name.substring(8));

2
src/main/resources/static/mirror-repository-hook.soy

@ -6,6 +6,7 @@
*/
{template .view}
<div class="et-mirror-contents">
// Always add one subview
{call .subview data="all"}
{param index: 0 /}
@ -31,6 +32,7 @@
<script>
require("et/hook/mirror").init(com.englishtown.bitbucket.hook.subview, aui.buttons.button);
</script>
</div>
{/template}
/**

Loading…
Cancel
Save