Temporary code that brings in some export support

pull/35/head
John McLear 2011-07-20 15:42:47 +01:00
parent b4c2f6eb11
commit 50c6b9de00
3 changed files with 15 additions and 6 deletions

View File

@ -958,6 +958,8 @@ position: relative;
background-repeat:no-repeat;
padding-left:25px;
background-image: url("/static/img/fileicons.gif");
color:#fff;
text-decoration:none;
}
#importexportline{

View File

@ -21,6 +21,13 @@ var socket;
$(document).ready(function()
{
handshake();
// temporary place holder for exports, peter to move wherever he wants to put
$("#exporthtmla").attr("href", document.location.href + "/export/html");
$("#exportplaina").attr("href", document.location.href + "/export/plain");
$("#exportworda").attr("href", document.location.href + "/export/word");
$("#exportpdfa").attr("href", document.location.href + "/export/pdf");
$("#exportopena").attr("href", document.location.href + "/export/open");
$("#exportwordlea").attr("href", document.location.href + "/export/wordle");
});
$(window).unload(function()

View File

@ -214,12 +214,12 @@ We removed this feature cause its not worth the space it needs in the editbar
<div id="importexportline"></div>
<div id="export">
Export current pad as:
<div class="exporttype" id="exporthtml">HTML</div>
<div class="exporttype" id="exportplain">Plain text</div>
<div class="exporttype" id="exportword">Microsoft Word</div>
<div class="exporttype" id="exportpdf">PDF</div>
<div class="exporttype" id="exportopen">OpenDocument</div>
<div class="exporttype" id="exportwordle">Wordle</div>
<a id="exporthtmla" class="exportlink"><div class="exporttype" id="exporthtml">HTML</div></a>
<a id="exportplaina" class="exportlink"><div class="exporttype" id="exportplain">Plain text</div></a>
<a id="exportworda" class="exportlink"><div class="exporttype" id="exportword">Microsoft Word</div></a>
<a id="exportpdfa" class="exportlink"><div class="exporttype" id="exportpdf">PDF</div></a>
<a id="exportopena" class="exportlink"><div class="exporttype" id="exportopen">OpenDocument</div></a>
<a id="exportwordlea" class="exportlink"><div class="exporttype" id="exportwordle">Wordle</div></a>
</div>
</div>