]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixed ajax urls
authorTom Needham <needham.thomas@gmail.com>
Mon, 3 Oct 2011 22:41:32 +0000 (23:41 +0100)
committerTom Needham <needham.thomas@gmail.com>
Mon, 3 Oct 2011 22:41:32 +0000 (23:41 +0100)
apps/files_texteditor/js/editor.js

index e9ed6720beaf7c13979c5e744010f74940c555c3..743a896dcd9ff017e6ed558c31ecda2a4e60842d 100644 (file)
@@ -68,7 +68,7 @@ function editorIsShown(){
 }
 
 function updateSessionFileHash(path){
-       $.get(OC.filePath('apps','files_texteditor','ajax','loadfile.php'),
+       $.get(OC.filePath('files_texteditor','ajax','loadfile.php'),
                { path: path },
                function(jsondata){
                        if(jsondata.status=='failure'){
@@ -82,12 +82,12 @@ function doFileSave(){
                var filecontents = window.aceEditor.getSession().getValue();
                var dir =  $('#editor').attr('data-dir');
                var file =  $('#editor').attr('data-filename');
-               $.post(OC.filePath('apps','files_texteditor','ajax','savefile.php'), { filecontents: filecontents, file: file, dir: dir },function(jsondata){
+               $.post(OC.filePath('files_texteditor','ajax','savefile.php'), { filecontents: filecontents, file: file, dir: dir },function(jsondata){
                        
                        if(jsondata.status == 'failure'){
                                var answer = confirm(jsondata.data.message);
                                if(answer){
-                                       $.post(OC.filePath('apps','files_texteditor','ajax','savefile.php'),{ filecontents: filecontents, file: file, dir: dir, force: 'true' },function(jsondata){
+                                       $.post(OC.filePath('files_texteditor','ajax','savefile.php'),{ filecontents: filecontents, file: file, dir: dir, force: 'true' },function(jsondata){
                                                if(jsondata.status =='success'){
                                                        $('#editor_save').val(t('files_texteditor','Save'));
                                                        $('#editor_save').effect("highlight", {color:'#4BFF8D'}, 3000);