Use context instead of static access
This commit is contained in:
parent
1e65def248
commit
423cb53e14
@ -46,8 +46,8 @@ var odfViewer = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onEdit : function(){
|
onEdit : function(fileName, context){
|
||||||
var fileId = OCA.Files.fileActions.currentFile.parent().attr('data-id');
|
var fileId = context.$file.attr('data-id');
|
||||||
window.location = OC.linkTo('documents', 'index.php') + '#' + fileId;
|
window.location = OC.linkTo('documents', 'index.php') + '#' + fileId;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user