diff options
-rw-r--r-- | apps/files_textviewer/appinfo/info.xml | 21 | ||||
-rw-r--r-- | apps/files_textviewer/js/textviewer.js | 6 |
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(); + }; } }); } |