From: Tom Needham Date: Mon, 3 Oct 2011 22:41:32 +0000 (+0100) Subject: Fixed ajax urls X-Git-Tag: v3.0~121 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6c9ff0e47e94e033bb1efb5c476d56faf055f671;p=nextcloud-server.git Fixed ajax urls --- diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js index e9ed6720bea..743a896dcd9 100644 --- a/apps/files_texteditor/js/editor.js +++ b/apps/files_texteditor/js/editor.js @@ -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);