Index: openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/oacs-fs.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/Attic/oacs-fs.js,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/oacs-fs.js 4 Jun 2006 00:45:53 -0000 1.2 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/oacs-fs.js 18 Aug 2006 09:02:09 -0000 1.3 @@ -31,7 +31,13 @@ OacsFs.fs_package_id = this.editor.config.fs_package_id; OacsFs.folder_id = this.editor.config.folder_id; OacsFs.file_types = this.editor.config.file_types; + OacsFs.script_dir = this.editor.script_dir; OacsFs.fullscreen_mode = additionalArgs[1]; + + if (typeof OacsFs.script_dir == "undefined") { + // OacsFs.script_dir = "."; + OacsFs.script_dir = "/xowiki"; + } var cfg = editor.config; var tt = OacsFs.I18N; @@ -121,7 +127,7 @@ // "plugins/OacsFs/popups/insert-image.tcl?fs_package_id=" + // fs_package_id; - var PopupUrl = "./xinha/insert-ilink?"; + var PopupUrl = OacsFs.script_dir + "/xinha/insert-ilink?"; if (typeof OacsFs.fs_package_id != "undefined") { PopupUrl = PopupUrl + "&fs_package_id=" + OacsFs.fs_package_id; } @@ -185,7 +191,7 @@ } - var PopupUrl = "./xinha/insert-ilink?"; + var PopupUrl = OacsFs.script_dir + "/xinha/insert-ilink?"; if (typeof OacsFs.fs_package_id != "undefined") { PopupUrl = PopupUrl + "&fs_package_id=" + OacsFs.fs_package_id; } @@ -257,7 +263,7 @@ // "plugins/OacsFs/popups/insert-image.tcl?fs_package_id=" + // fs_package_id; - var PopupUrl = "./xinha/insert-image?"; + var PopupUrl = OacsFs.script_dir + "/xinha/insert-image?"; if (typeof OacsFs.fs_package_id != "undefined") { PopupUrl = PopupUrl + "&fs_package_id=" + OacsFs.fs_package_id; }