some fixes for the textviewer already

This commit is contained in:
Robin Appelman 2011-08-03 00:01:31 +02:00
parent dd5cc8dcaf
commit ad51328408
2 changed files with 13 additions and 14 deletions

View File

@ -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>

View File

@ -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();
};
}
});
}