don't try to register file actions when we're not in the files app
This commit is contained in:
parent
47081a2471
commit
4ba527625f
|
@ -9,7 +9,7 @@ $(document).ready(function() {
|
|||
});
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
if (typeof FileActions !== 'undefined') {
|
||||
// Add history button to files/index.php
|
||||
FileActions.register('file','History',function(){return OC.imagePath('core','actions/history')},function(filename){
|
||||
|
||||
|
@ -32,7 +32,7 @@ $(document).ready(function(){
|
|||
});
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
function createVersionsDropdown(filename, files) {
|
||||
|
|
Loading…
Reference in New Issue