|
|
Sponsor |
r1608 - branches/bxe_2_0/js: msg#00010editors.bitflux.cvs
Author: chregu Date: Mon Nov 6 16:27:30 2006 New Revision: 1608 Modified: branches/bxe_2_0/js/bxeFunctions.js Log: don't show delete node for table-row Modified: branches/bxe_2_0/js/bxeFunctions.js ============================================================================== --- branches/bxe_2_0/js/bxeFunctions.js (original) +++ branches/bxe_2_0/js/bxeFunctions.js Mon Nov 6 16:27:30 2006 @@ -695,32 +695,32 @@ }); } } - - popup.addMenuItem(bxe_i18n.getText("Delete {0} Element",new Array(node.vdom.bxeName)), function (e) { - var widget = e.currentTarget.Widget; - var delNode = widget.MenuPopup.MainNode; - //delNode.unlink(); - bxe_history_snapshot(); - - var par = delNode.parentNode - try { - var _prev = delNode._htmlnode.previousSibling; - var sel = window.getSelection(); - var _pos = 0; - - if (_prev) { - _pos = _prev.nodeValue.length; - sel.collapse(_prev,_pos); - } else { - sel.collapse(par._htmlnode.firstChild,0); + if (node.vdom.bxeTabletype != "table-row") { + popup.addMenuItem(bxe_i18n.getText("Delete {0} Element",new Array(node.vdom.bxeName)), function (e) { + var widget = e.currentTarget.Widget; + var delNode = widget.MenuPopup.MainNode; + //delNode.unlink(); + bxe_history_snapshot(); + + var par = delNode.parentNode + try { + var _prev = delNode._htmlnode.previousSibling; + var sel = window.getSelection(); + var _pos = 0; + + if (_prev) { + _pos = _prev.nodeValue.length; + sel.collapse(_prev,_pos); + } else { + sel.collapse(par._htmlnode.firstChild,0); + } + } catch(e) { } - } catch(e) { - } - delNode.unlink(); - - bxe_Transform(false,false,par); - },bxe_i18n.getText("Deletes the Element and all its children")); - + delNode.unlink(); + + bxe_Transform(false,false,par); + },bxe_i18n.getText("Deletes the Element and all its children")); + } if (node.parentNode.canHaveText) { popup.addMenuItem(bxe_i18n.getText("Clean "), function (e) { var widget = e.currentTarget.Widget; -- Bx-editor-cvs mailing list Bx-editor-cvs-PnctHDZWAvAqj5uKkWUP+Q@xxxxxxxxxxxxxxxx http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | r1607 - branches/bxe_2_0, chregu-TlZQWchueF9g9hUCZPvPmw |
|---|---|
| Next by Date: | r1609 - branches/bxe_2_0/js, chregu-TlZQWchueF9g9hUCZPvPmw |
| Previous by Thread: | r1607 - branches/bxe_2_0, chregu-TlZQWchueF9g9hUCZPvPmw |
| Next by Thread: | r1609 - branches/bxe_2_0/js, chregu-TlZQWchueF9g9hUCZPvPmw |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|