Don't show PDF Export on Windows

This commit is contained in:
Peter 'Pita' Martischka 2011-08-21 20:09:25 +01:00
parent 8c301d4fe8
commit 177abdd29e
2 changed files with 22 additions and 2 deletions

View file

@ -236,7 +236,7 @@ var padimpexp = (function()
$("#exportwordlea").attr("href", document.location.href + "/export/wordle");
//hide stuff thats not avaible if abiword is disabled
if(!clientVars.abiwordAvailable)
if(clientVars.abiwordAvailable == "no")
{
$("#exportworda").remove();
$("#exportpdfa").remove();
@ -245,6 +245,18 @@ var padimpexp = (function()
$("#importexportline").css({"height":"95px"});
$("#import").html("Import is not available");
}
else if(clientVars.abiwordAvailable == "withoutPDF")
{
$("#exportpdfa").remove();
$("#exportworda").attr("href", document.location.href + "/export/doc");
$("#exportopena").attr("href", document.location.href + "/export/odt");
$("#importexport").css({"height":"142px"});
$("#importexportline").css({"height":"142px"});
$("#importform").get(0).setAttribute('action', document.location.href + "/import");
}
else
{
$("#exportworda").attr("href", document.location.href + "/export/doc");