Skip to content

Commit

Permalink
pdf support in navigators in site template
Browse files Browse the repository at this point in the history
  • Loading branch information
juliantenney committed May 5, 2015
1 parent a7c31f9 commit ffd58df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions modules/site/parent_templates/site/common/js/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,10 @@ function makeNav(node,section,type, sectionIndex, itemIndex){

}

if (this.nodeName == 'pdf'){
tab.append('<object id="pdfDoc"' + new Date().getTime() + ' data="' + eval( $(this).attr('url')) + '" type="application/pdf" width="100%" height="100%"><param name="src" value="' + eval( $(this).attr('url')) + '"></object>');
}

});

content.append(tab);
Expand Down
3 changes: 2 additions & 1 deletion src/site/wizards/en-GB/template.xwd
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@
<name type="TextInput" label="Pane Title"/>

<newNodes>


<pdf><![CDATA[<pdf name="Name" url="Select File..."/>]]></pdf>
<link><![CDATA[<link name="Name" url="Enter URL..."/>]]></link>
<video><![CDATA[<video name="Name" url="Select File..."/>]]></video>
<audio><![CDATA[<audio name="Name" url="Select File..."/>]]></audio>
Expand Down

0 comments on commit ffd58df

Please sign in to comment.