From 73ee0d3eba30f2968940541ac5c914092a5ab424 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Fri, 19 Apr 2013 13:47:39 -0700 Subject: [PATCH] Adding more animation --- core/src/main/resources/lib/form/repeatable/repeatable.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/src/main/resources/lib/form/repeatable/repeatable.js b/core/src/main/resources/lib/form/repeatable/repeatable.js index d694ef8f6c..41a330cc9d 100644 --- a/core/src/main/resources/lib/form/repeatable/repeatable.js +++ b/core/src/main/resources/lib/form/repeatable/repeatable.js @@ -32,13 +32,18 @@ var repeatableSupport = { expand : function() { // importNode isn't supported in IE. // nc = document.importNode(node,true); - var nc = document.createElement("div"); + var nc = $(document.createElement("div")); nc.className = "repeated-chunk"; + nc.setOpacity(0); nc.setAttribute("name",this.name); nc.innerHTML = this.blockHTML; this.insertionPoint.parentNode.insertBefore(nc, this.insertionPoint); if (this.withDragDrop) prepareDD(nc); + new YAHOO.util.Anim(nc, { + opacity: { to:1 } + }, 0.2, YAHOO.util.Easing.easeIn).animate(); + Behaviour.applySubtree(nc,true); this.update(); }, -- GitLab