Merge pull request #5405 from owncloud/sharing-chromehangswithversionenabled

Disable versions app JS in public mode
This commit is contained in:
Morris Jobke 2013-10-18 01:27:30 -07:00
commit 0755aca501
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(