Popup
Popup
[{Popup id="test1" sourceFileName="popup-content.wiki" sourcePageName="/OpenForum/Extensions/OneTimePopup"}]
One Time Popup
This is a popup that can be supressed
×
[{Popup id="test2" content="some content"]
Popup button
[{Popup id="test1" title="Pop me up"}]
Pop me up
[{Popup id="test2" title="Pop me up"}]
Pop me up
Popup script
$('#test1').foundation('reveal', 'open');
$('#test2').foundation('reveal', 'open');
Source
/OpenForum/Extensions/Popup/renderer.sjs/*
* Author:
* Description:
*/
var id = extension.getAttribute("id");
var sourceFile = extension.getAttribute("sourceFileName");
var sourcePage = extension.getAttribute("sourcePageName");
var content = extension.getAttribute("content");
var title = extension.getAttribute("title");
var action = extension.getAttribute("action");
var html = "";
if(sourceFile!=null || content!=null) {
if(content==null) {
var content = openForum.renderWikiData(sourcePage,file.getAttachment(sourcePage,sourceFile));
}
html = "";
} if(content!=null) {
} else {
if(action==null) {
action="";
}
html = ""+title+"";
}
return html;