odf preview

Aleksander Machniak machniak at kolabsys.com
Sat Sep 20 07:34:32 CEST 2014


On 09/19/2014 10:29 PM, Mihai Badici wrote:
> kolab_files.js://    var href = '?' + $.param({_task: 'files', _action: 'open', 
> file: file, viewer: viewer == 2 ? 1 : 0});
> 
> with
> 
> kolab_files.js:    var href = '?' + $.param({_task: 'files', _action: 'open', 
> file: file, viewer: viewer == 1});
> 
> No ideea from where this parameter came from. 

It comes from Chwala. The idea was to do a feature detection and to not
use our viewer if browser has it's own. So, I think your browser has
already some odf viewer installed or is misconfigured.

However, I planned to give priority to Chwala viewers, it's even
implemented in some branch, but not yet in master.

http://git.kolab.org/kolab-chwala/diff/public_html/js/files_api.js?h=odfeditor&id=574907d0bd35b5e12c078620d79d76956488703c

-- 
Aleksander Machniak
Software Developer
Kolab Systems AG: http://kolabsys.com
PGP: 19359DC1


More information about the users mailing list