Apply changes of mmariani in Github extpath branch (https://github.com/mmariani/svg-edit/compare/extpath ) as reported by birbag in issue 1184
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2693 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -30,8 +30,8 @@ svgEditor.addExtension("server_opensave", {
|
||||
}
|
||||
var open_svg_action, import_svg_action, import_img_action,
|
||||
open_svg_form, import_svg_form, import_img_form,
|
||||
save_svg_action = 'extensions/filesave.php',
|
||||
save_img_action = 'extensions/filesave.php',
|
||||
save_svg_action = svgEditor.curConfig.extPath + 'filesave.php',
|
||||
save_img_action = svgEditor.curConfig.extPath + 'filesave.php',
|
||||
// Create upload target (hidden iframe)
|
||||
cancelled = false;
|
||||
|
||||
@@ -109,9 +109,9 @@ svgEditor.addExtension("server_opensave", {
|
||||
if (window.FileReader) {return;}
|
||||
|
||||
// Change these to appropriate script file
|
||||
open_svg_action = 'extensions/fileopen.php?type=load_svg';
|
||||
import_svg_action = 'extensions/fileopen.php?type=import_svg';
|
||||
import_img_action = 'extensions/fileopen.php?type=import_img';
|
||||
open_svg_action = svgEditor.curConfig.extPath + 'fileopen.php?type=load_svg';
|
||||
import_svg_action = svgEditor.curConfig.extPath + 'fileopen.php?type=import_svg';
|
||||
import_img_action = svgEditor.curConfig.extPath + 'fileopen.php?type=import_img';
|
||||
|
||||
// Set up function for PHP uploader to use
|
||||
svgEditor.processFile = function(str64, type) {
|
||||
|
||||
Reference in New Issue
Block a user