Komponenten
Jetzt lesen
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:Dialog"
title="Sourcecode"
xtype="dialog"
width="600"
height="600">
<items jcr:primaryType="cq:TabPanel">
<items jcr:primaryType="cq:WidgetCollection">
<tab1
jcr:primaryType="cq:Panel"
title="Sourcecode">
<items jcr:primaryType="cq:WidgetCollection">
<code
jcr:primaryType="cq:Widget"
hideLabel="true"
grow="{Boolean}true"
name="./code"
xtype="textarea"/>
</items>
</tab1>
</items>
</items>
</jcr:root>
/********************************************
* Login Area *
* to change login link if user is logged in *
********************************************/
IS24 = IS24 || {};
IS24.STATIC = IS24.STATIC || {};
IS24.STATIC.SSO = IS24.STATIC.SSO || {};
IS24.STATIC.getLoggedInUser = function () {
var apiUrl = IS24.STATIC.SSO.getSSOApiUrl();
jQuery.ajax({
type: 'GET',
url: apiUrl,
contentType: "application/json",
dataType: "jsonp",
success: function(dataObj) {
if (dataObj !== undefined) {
IS24.STATIC.showLoginInfo(dataObj);
}
},
error: function(e) {
console.error(e.message);
}
});
};
{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
}}