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

@ -27,6 +27,7 @@ var readOnlyManager = require("../db/ReadOnlyManager");
var settings = require('../utils/Settings');
var securityManager = require("../db/SecurityManager");
var log4js = require('log4js');
var os = require("os");
var messageLogger = log4js.getLogger("message");
/**
@ -752,6 +753,13 @@ function handleClientReady(client, message)
var apool = attribsForWire.pool.toJsonable();
atext.attribs = attribsForWire.translated;
//check if abiword is avaiable
var abiwordAvailable = settings.abiword != null ? "yes" : "no";
if(settings.abiword != null && os.type().indexOf("Windows") != -1)
{
abiwordAvailable = "withoutPDF";
}
var clientVars = {
"accountPrivs": {
"maxRevisions": 100
@ -788,7 +796,7 @@ function handleClientReady(client, message)
"fullWidth": false,
"hideSidebar": false
},
"abiwordAvailable": settings.abiword != null,
"abiwordAvailable": abiwordAvailable,
"hooks": {}
}