Re: (Revisiting thread from last month) Persisting of custom attributes on the combo_box widget
Michael Flanagan <[email protected]>
| Newsgroups | gmane.comp.windows.devel.netwindows |
|---|---|
| Message-ID | <[email protected]> |
Alex Russell wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >On Monday 21 July 2003 6:17 pm, Michael Flanagan wrote: > > >>We had a discussion about this last month during which I submitted >>a working patch against head. >> >>I've resync'd with head and merged my change into it. I'm once >>again submitting my implementation as a proposed solution. >> >> > >looks fine. Is there an associated patch to netWindows.js to support >NWconfig["watchAttributes"]? > > How about this? _______________________________________________ The netWindows developers list: [email protected] http://netwindows.org/mailman/listinfo/devel_netwindows.org
netWindows.js.patch
(text/plain, 1.1 KB)
Index: netWindows.js =================================================================== RCS file: /opt/cvs/main/chrooted-cvs/cvs/tsc/core/global/netWindows/winScripts/netWindows.js,v retrieving revision 1.8 diff -u -r1.8 netWindows.js --- netWindows.js 21 Jul 2003 22:28:48 -0000 1.8 +++ netWindows.js 22 Jul 2003 00:23:52 -0000 @@ -755,6 +755,19 @@ /*--> <fieldsynopsis> + &public; &arr; + <varname>persistAttributes</varname> + </fieldsynopsis> + <para role="fieldinfo"> + A list of HTML attributes to be coppied into &nw; widgets which rewrite the + DOM. This gives you the ability to define custom attributes to be coppied + from the orrigional DOM node, to the replacement &nw; widget. + </para> + <!--*/ + this.persistAttributes = []; + + /*--> + <fieldsynopsis> &private; &arr; <varname>toInc</varname> </fieldsynopsis> @@ -1076,6 +1089,9 @@ break; case "searchIds": this.searchIds = this.searchIds.concat(arr[x]); + break; + case "watchAttributes": + this.persistAttributes = this.persistAttributes.concat(arr[x]); break; case "obeyRequestEnv": this.obeyRequestEnv = arr[x];