diff options
author | Tom Needham <needham.thomas@gmail.com> | 2011-09-28 21:25:25 +0100 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2011-09-28 21:25:25 +0100 |
commit | bc7289bb284db0fe100be9e354fb4bcbc2d5b5b3 (patch) | |
tree | 204fdc3282fa6260eba837eb42a588d627eadfcf /files/js | |
parent | 4fe993a55dd998146c36c6cc2aa190cbac82abde (diff) | |
download | nextcloud-server-bc7289bb284db0fe100be9e354fb4bcbc2d5b5b3.tar.gz nextcloud-server-bc7289bb284db0fe100be9e354fb4bcbc2d5b5b3.zip |
Changed theme. Editing is now default action for all supported types. Fixed static url.
Diffstat (limited to 'files/js')
-rw-r--r-- | files/js/fileactions.js | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/files/js/fileactions.js b/files/js/fileactions.js index 5d31af40376..d688973e53c 100644 --- a/files/js/fileactions.js +++ b/files/js/fileactions.js @@ -135,14 +135,21 @@ 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'); FileActions.register('dir','Open','',function(filename){ window.location='index.php?dir='+$('#dir').val()+'/'+filename; }); FileActions.setDefault('dir','Open'); + +FileActions.register('text','Edit','',function(filename){ + window.location=OC.linkTo('editor', 'index.php')+'?file='+filename+'&dir='+$('#dir').val(); +}); + +FileActions.setDefault('text','Edit'); + +FileActions.register('application/xml','Edit','',function(filename){ + window.location=OC.linkTo('editor', 'index.php')+'?file='+filename+'&dir='+$('#dir').val(); +}); + +FileActions.setDefault('application/xml','Edit'); |