|
|
Sponsor |
cvs: bxeng /js widget.js: msg#00007editors.bitflux.cvs
chregu Thu Nov 6 17:18:48 2003 EDT Modified files: /bxeng/js widget.js Log: some edit attribtues work Index: bxeng/js/widget.js diff -u bxeng/js/widget.js:1.47 bxeng/js/widget.js:1.48 --- bxeng/js/widget.js:1.47 Thu Oct 16 20:16:59 2003 +++ bxeng/js/widget.js Thu Nov 6 17:18:48 2003 @@ -580,6 +580,8 @@ this.Popup.position(0,0,"absolute"); this.Popup.ContextMenu = this; this.subPopup = new Widget_MenuPopup(); + this.EditAttributes = new Widget_ModalAttributeBox(); + } Widget_ContextMenu.prototype = new Widget(); @@ -594,6 +596,7 @@ if (node.XMLNode.vdom.hasAttributes && this.EditAttributes) { var menui = this.Popup.addMenuItem("Edit Attributes..", this.EditAttributes.popup); menui.Modal = this.EditAttributes; + // menui.MenuPopup._node = node; } var sel = window.getSelection(); var cssr = sel.getEditableRange(); @@ -631,6 +634,13 @@ ele.addMenu(this.subPopup,function(e){ var sub = e.currentTarget.Widget.SubPopup; sub.removeAllMenuItems(); + var newNode = e.currentTarget.Widget.AppendToNode._node; + if (newNode.XMLNode.vdom.hasAttributes && e.currentTarget.Widget.EditAttribute) { + var menui = sub.addMenuItem("Edit Attributes..", sub.EditAttributes.popup); + menui.Modal = e.currentTarget.Widget.EditAttribute; + menui.MenuPopup._node = newNode; + } + sub.appendAllowedSiblings(e.currentTarget.Widget.AppendToNode._node); eDOMEventCall("ContextPopup",e.currentTarget.Widget.AppendToNode._node,sub); }); -- 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: | cvs: bxeng /js bxeFunctions.js, Christian Stocker |
|---|---|
| Next by Date: | cvs: bxeng / bxeLoader.js, Christian Stocker |
| Previous by Thread: | cvs: bxeng /js bxeFunctions.js, Christian Stocker |
| Next by Thread: | cvs: bxeng /js widget.js, Christian Stocker |
| 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.
|