Index: openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsAttach/oacs-attach.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsAttach/oacs-attach.js,v diff -u -r1.4 -r1.5 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsAttach/oacs-attach.js 17 Oct 2006 23:21:51 -0000 1.4 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsAttach/oacs-attach.js 18 Nov 2006 13:18:42 -0000 1.5 @@ -75,7 +75,7 @@ OacsAttach.btnList = [ ["insert-ilink", "Insert Internal Link"], - ["insert-image", "Insert Image"], + ["insert-image", "Insert Image"] ]; OacsAttach.prototype.buttonPress = function(editor, id) { @@ -127,7 +127,7 @@ // "/acs-templating/scripts/xinha/insert-image.tcl?fs_package_id=" + // fs_package_id; - var PopupUrl = "/acs-templating/scripts/xinha/attach-file?"; + var PopupUrl = "/acs-templating/scripts/xinha/attach-file?package_id=" + OacsAttach.package_id; if (typeof OacsAttach.key != "undefinied") { PopupUrl = PopupUrl + "&parent_id=" + OacsAttach.key; } else if (typeof OacsAttach.attach_parent_id != "undefined") { @@ -194,7 +194,7 @@ }; } - var PopupUrl = "/acs-templating/scripts/xinha/attach-file?"; + var PopupUrl = "/acs-templating/scripts/xinha/attach-file?package_id=" + OacsAttach.package_id; if (typeof OacsAttach.key != "undefinied") { PopupUrl = PopupUrl + "&parent_id=" + OacsAttach.key; } else if (typeof OacsAttach.attach_parent_id != "undefined") { @@ -270,7 +270,7 @@ // "/acs-templating/scripts/xinha/insert-image.tcl?fs_package_id=" + // fs_package_id; - var PopupUrl = "/acs-templating/scripts/xinha/attach-image?"; + var PopupUrl = "/acs-templating/scripts/xinha/attach-image?package_id=" + OacsAttach.package_id; if (typeof OacsAttach.key != "undefinied") { PopupUrl = PopupUrl + "&parent_id=" + OacsAttach.key; } else if (typeof OacsAttach.attach_parent_id != "undefined") {