Index: lams_central/web/fckeditor/editor/plugins/wikilink/fck_wikilink.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/plugins/wikilink/Attic/fck_wikilink.jsp,v
diff -u -r1.3 -r1.4
--- lams_central/web/fckeditor/editor/plugins/wikilink/fck_wikilink.jsp 7 Jul 2008 05:42:09 -0000 1.3
+++ lams_central/web/fckeditor/editor/plugins/wikilink/fck_wikilink.jsp 9 Oct 2008 05:55:39 -0000 1.4
@@ -25,31 +25,22 @@
var FCKLang = oEditor.FCKLang ;
var FCKWikiLinks = oEditor.FCKWikiLinks ;
-jQuery.ajax({
- url : "/tool/lawiki10/WikiLinkHandler",
- data : {toolSessionId: window.parent.InnerDialogLoaded().FCK.toolSessionId,
- sessionMapID: window.parent.InnerDialogLoaded().FCK.sessionMapID,
- wikiID: window.parent.InnerDialogLoaded().FCK.wikiID,
- method: 'getWikis'},
- async : false,
- success : function(xml) {
- xmlDoc = xml;
- wikiArray = xmlDoc.getElementsByTagName('Wiki');
- }
-});
+// Get the array of possible wiki links from the opening window
+wikiArray = window.top.opener.top.document.getElementById("wikiLinks").value.split(',');
+
function init()
{
// First of all, translate the dialog box texts
oEditor.FCKLanguageManager.TranslatePage( document ) ;
- //alert('');
document.getElementById("linkAlias").value = getSelectedText();
// Show the "Ok" button.
window.parent.SetOkButton( true ) ;
}
+
function getSelectedText()
{
var selection = "";
@@ -121,17 +112,8 @@
var i;
for (i=0; i