X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/4653a970f0c574750b1ea2e19b112b13d66e80eb..90783a3ff6a8171f11f15adc7d57925548b1756f:/edit.js diff --git a/edit.js b/edit.js index f7068ad..dee1038 100644 --- a/edit.js +++ b/edit.js @@ -2,7 +2,7 @@ CKEDITOR.plugins.add('inlinesave', { init: function(editor) { editor.addCommand( 'inlinesave', { exec: function (editor) { - var pagename = window.location.pathname.replace(/\.html$/, '').replace(/\/$/, '/index'); + var pagename = window.location.pathname.replace(/\.php$/, '').replace(/\/$/, '/index'); var data = 'body='+encodeURIComponent(editor.getData()); ajaxpost = new XMLHttpRequest(); ajaxpost.open('POST', '/edit.php'+pagename, true);