diff options
author | Tom Needham <needham.thomas@gmail.com> | 2011-10-01 22:48:00 +0100 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2011-10-01 22:48:00 +0100 |
commit | 0825073e8cac2a654bbc89b99b5a83cdfee7a836 (patch) | |
tree | 1b53a19b3f2b307351049b3e7aa811f9c0d32664 /files/js | |
parent | 3c361cec924026314bf39e60904775d8b9636696 (diff) | |
download | nextcloud-server-0825073e8cac2a654bbc89b99b5a83cdfee7a836.tar.gz nextcloud-server-0825073e8cac2a654bbc89b99b5a83cdfee7a836.zip |
Editor now loads on top of files app.
Diffstat (limited to 'files/js')
-rw-r--r-- | files/js/fileactions.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/js/fileactions.js b/files/js/fileactions.js index d688973e53c..24e01c34db7 100644 --- a/files/js/fileactions.js +++ b/files/js/fileactions.js @@ -143,13 +143,13 @@ FileActions.register('dir','Open','',function(filename){ FileActions.setDefault('dir','Open'); FileActions.register('text','Edit','',function(filename){ - window.location=OC.linkTo('editor', 'index.php')+'?file='+filename+'&dir='+$('#dir').val(); + showFileEditor($('#dir').val(),filename); }); FileActions.setDefault('text','Edit'); FileActions.register('application/xml','Edit','',function(filename){ - window.location=OC.linkTo('editor', 'index.php')+'?file='+filename+'&dir='+$('#dir').val(); + showFileEditor($('#dir').val(),filename); }); FileActions.setDefault('application/xml','Edit'); |