Skip to content

Mail observes onbroadcast #167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
fe96422
Add style attribute fixes from testing branch to issue99 branch.
h6w Oct 15, 2011
43a4d0f
Fix failure to produce detailed error when parsing xml failed on chrome.
h6w Jan 6, 2012
7b8baaf
Added catch for 'script error' message when no parse error exists by …
h6w Jan 8, 2012
ff24c73
Add additional wording to explain error.
h6w Jan 9, 2012
23f9798
Add in simple DTD processing so that entities in XUL files will be re…
h6w Jan 17, 2012
0fc6c20
New keyboard example application. Keyboard and log displayed. No key…
h6w Jan 24, 2012
1ddc825
Merge branch 'master' of https://github.com/clientside/amplesdk into …
h6w Jan 25, 2012
1cac3ec
Merge branch 'master' of https://github.com/clientside/amplesdk into …
h6w Jan 25, 2012
a28bdd0
Merge branch 'master' of https://github.com/clientside/amplesdk into …
h6w Jan 25, 2012
4a05f4d
Some of the keys now work.
h6w Jan 28, 2012
64bd842
Hmmm.
h6w Feb 5, 2012
463a865
Merge branch 'master' of https://github.com/clientside/amplesdk into …
h6w Feb 7, 2012
45c3c5e
More work on keyboard.
h6w Feb 17, 2012
e9d739f
Merge branches 'master' and 'improve-xml-parse-error'
h6w Mar 20, 2012
3de8538
Merge branches 'master' and 'issue99'
h6w Mar 20, 2012
23d1fb5
Merge branches 'master' and 'kbdemo'
h6w Mar 20, 2012
038472e
Merge branch 'master' of https://github.com/clientside/amplesdk
h6w Nov 16, 2012
6c7486e
Merge branch 'master' of https://github.com/clientside/amplesdk
h6w Nov 29, 2012
c25135b
Modified mail client example to demo observes onbroadcast implementat…
h6w Nov 30, 2012
786b067
Fix branching errors.
h6w Nov 30, 2012
d1925c6
Update messages.js
h6w Jan 27, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions examples/applications/mail/client/modules/messages.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<xul:vbox flex="1" id="asdasd"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<xul:toolbar>
<xul:toolbarbutton label="Archieve" observes="brd_message_selected"/>
<xul:toolbarbutton label="Archive" observes="brd_message_selected"/>
<xul:toolbarbutton label="Report spam" observes="brd_message_selected" />
<xul:toolbarbutton label="Delete" observes="brd_message_selected" />
<xul:toolbarbutton label="Mark as read" observes="brd_message_selected" />
Expand Down Expand Up @@ -42,12 +42,16 @@
<xul:spacer width="5" />
</xul:hbox>
</xul:toolbar>
<xul:listbox minheight="100" maxheight="300" height="200" onselect="ample.query('#brd_message_selected').attr('disabled', this.selectedItems.length ? 'false' : 'true');">
<xul:listbox minheight="100" maxheight="300" height="200" onselect="
ample.query('#brd_message_selected').attr('disabled', this.selectedItems.length ? 'false' : 'true');
ample.query('#brd_message_selected').attr('from', this.selectedItems[0].childNodes.item(0).childNodes.item(0).nodeValue);
ample.query('#brd_message_selected').attr('header', this.selectedItems[0].childNodes.item(1).childNodes.item(0).nodeValue);
">
<xul:listhead>
<xul:listheader minwidth="100" width="200" label="From"/>
<xul:listheader minwidth="300" width="300" label="Subject"/>
<xul:listheader minwidth="50" width="100" label="Labels"/>
<xul:listheader minwidth="50" width="100" label="Attachements"/>
<xul:listheader minwidth="50" width="100" label="Attachments"/>
<xul:listheader minwidth="50" width="120" label="Date"/>
</xul:listhead>
<xul:listbody id="messages"/>
Expand All @@ -57,13 +61,17 @@
<xul:rows>
<xul:row>
<xul:label value="From:" />
<xul:label />
<xul:label id="from">
<xul:observes element="brd_message_selected" onbroadcast="this.parentNode.setAttribute('value',this.parentNode.getAttribute('from'));" />
</xul:label>
</xul:row>
<xul:row>
<xul:label value="Header:" />
<xul:label />
<xul:label id="header">
<xul:observes element="brd_message_selected" onbroadcast="this.parentNode.setAttribute('value',this.parentNode.getAttribute('header'));" />
</xul:label>
</xul:row>
</xul:rows>
</xul:grid>
<xul:description style="background-color: white" flex="1" value=" "/>
</xul:vbox>
</xul:vbox>
23 changes: 12 additions & 11 deletions examples/applications/mail/server/messages.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.