From 1f74e76d834e9a2ed24236b51c662072f999860c Mon Sep 17 00:00:00 2001 From: Tom Needham Date: Wed, 28 Sep 2011 15:15:04 +0100 Subject: Implemented ace-edtior as an app. Basic file editing and saving supported. --- files/js/fileactions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'files/js') diff --git a/files/js/fileactions.js b/files/js/fileactions.js index 4ff8562fef3..5d31af40376 100644 --- a/files/js/fileactions.js +++ b/files/js/fileactions.js @@ -135,6 +135,9 @@ FileActions.register('all','Delete',function(){return OC.imagePath('core','actio FileActions.register('all','Rename',function(){return OC.imagePath('core','actions/rename')},function(filename){ FileList.rename(filename); }); +FileActions.register('text','Edit',function(){return OC.imagePath('core','actions/rename')},function(filename){ + window.location='/apps/editor/index.php?file='+filename+'&dir='+$('#dir').val(); +}); //FileActions.setDefault('all','Download'); @@ -142,4 +145,4 @@ FileActions.register('dir','Open','',function(filename){ window.location='index.php?dir='+$('#dir').val()+'/'+filename; }); -FileActions.setDefault('dir','Open'); +FileActions.setDefault('dir','Open'); -- cgit v1.2.3