Index: openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/ContextMenu/context-menu.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/ContextMenu/context-menu.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/ContextMenu/context-menu.js 2 Nov 2005 08:55:59 -0000 1.1 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/ContextMenu/context-menu.js 11 Nov 2005 20:32:41 -0000 1.2 @@ -12,7 +12,7 @@ function ContextMenu(editor) { this.editor = editor; -}; +} ContextMenu._pluginInfo = { name : "ContextMenu", @@ -60,7 +60,7 @@ function tableOperation(opcode) { tbo.buttonPress(editor, opcode); - }; + } function insertPara(after) { var el = currentTarget; @@ -80,7 +80,7 @@ range.collapse(true); range.select(); } - }; + } for (; target; target = target.parentNode) { var tag = target.tagName; @@ -258,7 +258,7 @@ r.y += tmp.y; } return r; - }; + } function documentClick(ev) { ev || (ev = window.event); if (!self.currentMenu) { @@ -271,7 +271,7 @@ self.closeMenu(); //HTMLArea._stopEvent(ev); //return false; - }; + } var keys = []; function keyPress(ev) { ev || (ev = window.event); @@ -286,7 +286,7 @@ if (k[0].toLowerCase() == key) k[1].__msh.activate(); } - }; + } self.closeMenu = function() { self.currentMenu.parentNode.removeChild(self.currentMenu); self.currentMenu = null; @@ -296,7 +296,7 @@ HTMLArea._removeEvent(self.editordoc, "keypress", keyPress); if (HTMLArea.is_ie) self.iePopup.hide(); - }; + } var target = HTMLArea.is_ie ? ev.srcElement : ev.target; var ifpos = getPos(self.editor._htmlArea);//_iframe); var x = ev.clientX + ifpos.x; @@ -445,4 +445,4 @@ HTMLArea._stopEvent(ev); return false; -}; +}; \ No newline at end of file