Disable versions app JS in public mode

Since the version JS code isn't used in public link mode, disable it to
prevent Chrome freezing bugs due to the t() call being synchronous.

Fixes #4545
This commit is contained in:
Vincent Petry 2013-10-17 21:04:18 +02:00
parent 76be7cd1ac
commit 41c6c44221
1 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,12 @@
$(document).ready(function(){
if ($('#isPublic').val()){
// no versions actions in public mode
// beware of https://github.com/owncloud/core/issues/4545
// as enabling this might hang Chrome
return;
}
if (typeof FileActions !== 'undefined') {
// Add versions button to 'files/index.php'
FileActions.register(