mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
Don't show PDF Export on Windows
This commit is contained in:
parent
8c301d4fe8
commit
177abdd29e
2 changed files with 22 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue