only load image viewer when in the file browser
This commit is contained in:
parent
633d7826c9
commit
d6d38ac3fa
|
@ -1,6 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
OC_UTIL::addScript( 'files_imageviewer', 'lightbox' );
|
if(OC_APP::getCurrentApp()=='files'){
|
||||||
OC_UTIL::addStyle( 'files_imageviewer', 'lightbox' );
|
OC_UTIL::addScript( 'files_imageviewer', 'lightbox' );
|
||||||
|
OC_UTIL::addStyle( 'files_imageviewer', 'lightbox' );
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<info>
|
<info>
|
||||||
<id>files_imageview</id>
|
<id>files_imageviewer</id>
|
||||||
<name>Imageviewer</name>
|
<name>Image Viewer</name>
|
||||||
<description>Simple image viewer for owncloud</description>
|
<description>Simple image viewer for owncloud</description>
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
<licence>AGPL</licence>
|
<licence>AGPL</licence>
|
||||||
|
|
Loading…
Reference in New Issue