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
The following commit(s) were added to refs/heads/master by this push:
new b7a5645 Updated to fix format button on content loader
b7a5645 is described below
commit b7a5645b2d067c309e5fe347def25660592fba81
Author: Dan Klco <[email protected]>
AuthorDate: Sat Feb 24 20:04:02 2018 -0500
Updated to fix format button on content loader
---
.../resources/jcr_root/libs/sling-cms/content/admin/loadcontent.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/cms/ui/src/main/resources/jcr_root/libs/sling-cms/content/admin/loadcontent.json
b/cms/ui/src/main/resources/jcr_root/libs/sling-cms/content/admin/loadcontent.json
index 7c702f4..993bc08 100644
---
a/cms/ui/src/main/resources/jcr_root/libs/sling-cms/content/admin/loadcontent.json
+++
b/cms/ui/src/main/resources/jcr_root/libs/sling-cms/content/admin/loadcontent.json
@@ -46,7 +46,7 @@
"jcr:primaryType":
"nt:unstructured",
"sling:resourceType":
"sling-cms/components/editor/fields/button",
"label": "Format",
- "onclick": "javascript:try
{$('textarea[name=:content]').val(JSON.stringify(JSON.parse($('textarea[name=:content]').val()),
null, 2));} catch (e) { alert('Unable to parse Content JSON'); };return false;"
+ "onclick": "javascript:try
{$('textarea').val(JSON.stringify(JSON.parse($('textarea').val()), null, 2));}
catch (e) { alert('Unable to parse Content JSON'); };return false;"
}
}
}
--
To stop receiving notification emails like this one, please contact
[email protected].