You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2018/05/11 20:25:40 UTC

[sling-whiteboard] 01/03: Fixing an issue when there was more than one repeating field

This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git

commit 5e4af4833908cce6a71ff5981155bebb9f8b6640
Author: Dan Klco <dk...@apache.org>
AuthorDate: Fri May 11 15:29:25 2018 -0400

    Fixing an issue when there was more than one repeating field
---
 cms/ui/src/main/frontend/src/js/scripts.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cms/ui/src/main/frontend/src/js/scripts.js b/cms/ui/src/main/frontend/src/js/scripts.js
index 970c6a6..13c65ed 100644
--- a/cms/ui/src/main/frontend/src/js/scripts.js
+++ b/cms/ui/src/main/frontend/src/js/scripts.js
@@ -292,7 +292,7 @@ Sling.CMS = {
 				$rep.find('.repeating__add').click(function(){
 					var $div = $('<div/>').html($rep.find('.repeating__template').html());
 					Sling.CMS.decorate($div);
-					$('.repeating__container').append($div);
+					$rep.find('.repeating__container').append($div);
 					return false;
 				});
 			});

-- 
To stop receiving notification emails like this one, please contact
dklco@apache.org.