diff options
author | Tom Needham <needham.thomas@gmail.com> | 2011-09-28 15:15:04 +0100 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2011-09-28 15:15:04 +0100 |
commit | 1f74e76d834e9a2ed24236b51c662072f999860c (patch) | |
tree | 3c2551d6867b6a7f11b635de400c506d0da556fb /files/js | |
parent | c6f78fbe43dbe3f6875b72b34592bde25fc78d0b (diff) | |
download | nextcloud-server-1f74e76d834e9a2ed24236b51c662072f999860c.tar.gz nextcloud-server-1f74e76d834e9a2ed24236b51c662072f999860c.zip |
Implemented ace-edtior as an app. Basic file editing and saving supported.
Diffstat (limited to 'files/js')
-rw-r--r-- | files/js/fileactions.js | 5 |
1 files changed, 4 insertions, 1 deletions
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'); |