aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-03 00:01:31 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-08-03 00:01:31 +0200
commitad513284081da89c1d25936b3b2aeca16a8732ab (patch)
tree3c0820aef26b5ec19498224970b00bf771549795
parentdd5cc8dcafb2ec8450ba82872a64d59c14724a55 (diff)
downloadnextcloud-server-ad513284081da89c1d25936b3b2aeca16a8732ab.tar.gz
nextcloud-server-ad513284081da89c1d25936b3b2aeca16a8732ab.zip
some fixes for the textviewer already
-rw-r--r--apps/files_textviewer/appinfo/info.xml21
-rw-r--r--apps/files_textviewer/js/textviewer.js6
2 files changed, 13 insertions, 14 deletions
diff --git a/apps/files_textviewer/appinfo/info.xml b/apps/files_textviewer/appinfo/info.xml
index fe2cd6335f4..112a416c357 100644
--- a/apps/files_textviewer/appinfo/info.xml
+++ b/apps/files_textviewer/appinfo/info.xml
@@ -1,14 +1,9 @@
<?xml version="1.0"?>
-<plugin version='1.0'>
- <info>
- <id>textviewer</id>
- <name>A simple text viewer for ownCloud</name>
- <version>0.2</version>
- <licence>AGPL</licence>
- <author>Icewind</author>
- <require>1.1</require>
- </info>
- <runtime>
- <include>lib_textviewer.php</include>
- </runtime>
-</plugin>
+<info>
+ <id>files_textviewer</id>
+ <name>Text viewer</name>
+ <version>0.3</version>
+ <licence>AGPL</licence>
+ <author>Icewind</author>
+ <require>2</require>
+</info>
diff --git a/apps/files_textviewer/js/textviewer.js b/apps/files_textviewer/js/textviewer.js
index a244e467285..d650c44d5ab 100644
--- a/apps/files_textviewer/js/textviewer.js
+++ b/apps/files_textviewer/js/textviewer.js
@@ -95,8 +95,12 @@ TextViewer.loadHighlighter=function(ready){
SyntaxHighlighter.vars.discoveredBrushes=null; //force the highlighter to refresh it's cache
if(ready){
ready();
- };
+ }
});
+ }else{
+ if(ready){
+ ready();
+ };
}
});
}