Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-14514] 96442cd broke "Add <Something>" buttons for man…
…y plugins.

Not yet clear to me exactly what went wrong, but debugging shows that the init(...) function
is called twice: once with legitimate arguments, then again with a bogus 'master' argument.
Seems to suffice to ignore redundant initializations of the same element.
  • Loading branch information
jglick committed Jul 30, 2012
1 parent d531f75 commit acf394f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/main/resources/lib/form/repeatable/repeatable.js
Expand Up @@ -18,6 +18,9 @@ var repeatableSupport = {
// do the initialization
init : function(container,master,insertionPoint) {
this.container = $(container);
if (this.container.tag != null) {
return;
}
this.container.tag = this;
master = $(master);
this.blockHTML = master.innerHTML;
Expand Down

0 comments on commit acf394f

Please sign in to comment.