diff options
author | Tom Needham <needham.thomas@gmail.com> | 2011-10-03 23:41:32 +0100 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2011-10-03 23:41:32 +0100 |
commit | 6c9ff0e47e94e033bb1efb5c476d56faf055f671 (patch) | |
tree | bf7aa0410320b75f43e84e2ba725243fa68aa3f5 /apps/files_texteditor | |
parent | 32ce0d3c6eb7873b3bdec424f9aefa9ec4ab3d40 (diff) | |
download | nextcloud-server-6c9ff0e47e94e033bb1efb5c476d56faf055f671.tar.gz nextcloud-server-6c9ff0e47e94e033bb1efb5c476d56faf055f671.zip |
Fixed ajax urls
Diffstat (limited to 'apps/files_texteditor')
-rw-r--r-- | apps/files_texteditor/js/editor.js | 6 |
1 files changed, 3 insertions, 3 deletions
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); |