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.2.1 -r1.4.2.2 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsAttach/oacs-attach.js 13 Jan 2007 03:13:34 -0000 1.4.2.1 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsAttach/oacs-attach.js 14 Mar 2007 14:34:38 -0000 1.4.2.2 @@ -113,9 +113,10 @@ f_usetarget : link.f_usetarget }; } else { + f_title = editor.getSelectedHTML(); outparam = { f_href : '', - f_title : '', + f_title : f_title, f_target : '', f_usetarget : '' }; @@ -170,7 +171,7 @@ OacsAttach.prototype.insertInternalLinkTlf = function(link) { var editor = OacsAttach.editor; var outparam = null; - + if (typeof link == "undefined") { link = editor.getParentElement(); if (link && /^a$/i.test(link.tagName)) { @@ -206,6 +207,7 @@ if (typeof OacsAttach.folder_id != "undefined") { PopupUrl = PopupUrl + "&folder_id=" + OacsAttach.folder_id; } + Dialog(PopupUrl, function(param) { if (!param) return false; @@ -279,6 +281,7 @@ if (typeof OacsAttach.folder_id != "undefined") { PopupUrl = PopupUrl + "&folder_id=" + OacsAttach.folder_id; } + Dialog(PopupUrl, function(param) { if (!param) { // user must have pressed Cancel return false;