[
https://jira.nuxeo.com/browse/NXP-6918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=95063#comment-95063
]
Thierry Delprat commented on NXP-6918:
--------------------------------------
http://hg.nuxeo.com/addons/nuxeo-opensocial/rev/5d0600331cfd
The jQuery wrapper now accept a gadgetDefs list of map to configure the gadgets
instead of the 2 separated String lists, gadgetSpecs[] and titles[]
{code}
<script>
jQuery(document).ready(function() {
jQuery('head').append('<link rel="stylesheet"
href="#{baseURL}css/opensocial/light-container-gadgets.css" type="text/css"
/>');
jQuery('.gadgets').openSocialGadget({
baseURL: '#{baseURL}',
language: '#{localeSelector.language}',
gadgetDefs: [
{specUrl :
'http://localhost:8080/nuxeo/site/gadgets/eventMonitoring/eventMonitoring.xml',
title :
'#{messages['adminsubtab.usersActivity.charts.eventMonitoring']}',
width : '100%'},
{specUrl :
'http://localhost:8080/nuxeo/site/gadgets/httpMonitoring/httpMonitoring.xml',
title :
'#{messages['adminsubtab.usersActivity.charts.httpMonitoring']}',
width : '100%'}]
});
})
</script>
{code}
> Add light OpenSocial javascript gadgets container
> -------------------------------------------------
>
> Key: NXP-6918
> URL: https://jira.nuxeo.com/browse/NXP-6918
> Project: Nuxeo Enterprise Platform
> Issue Type: Task
> Components: Dashboard / OpenSocial
> Reporter: Thomas Roger
> Assignee: Thomas Roger
> Fix For: 5.4.2
>
> Time Spent: 4 hours
> Remaining Estimate: 0 minutes
>
> Integration of the sample javascript container from Apache Shindig.
> New jQuery plugin to easily add OpenSocial gadgets anywhere on the page.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets