Skip to content
Permalink
Browse files

[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 acf394f4f65b6bb77d3737dff2159f0d336129dc
Showing with 3 additions and 0 deletions.
  1. +3 −0 core/src/main/resources/lib/form/repeatable/repeatable.js
@@ -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;

0 comments on commit acf394f

Please sign in to comment.