Merge pull request #5405 from owncloud/sharing-chromehangswithversionenabled
Disable versions app JS in public mode
This commit is contained in:
commit
0755aca501
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue