This commit is contained in:
hyatt%netscape.com 2000-08-16 07:26:45 +00:00
Родитель 1cfca2fb1e
Коммит 80fd76f2b3
3 изменённых файлов: 16 добавлений и 5 удалений

Просмотреть файл

@ -21,19 +21,24 @@
function ThreadPaneOnClick(event)
{
if (event.target.localName != "treecell" &&
event.target.localName != "treeitem")
event.target.localName != "treeitem" &&
event.target.localName != "image")
return;
var targetclass = event.target.getAttribute('class');
if (event.target.localName == "image")
var targetclass = event.target.parentNode.getAttribute('class');
else
var targetclass = event.target.getAttribute('class');
dump('targetclass = ' + targetclass + '\n');
if(targetclass.indexOf('unreadcol') != -1)
{
ToggleMessageRead(event.target.parentNode.parentNode);
ToggleMessageRead(event.target.parentNode.parentNode.parentNode);
}
if(targetclass.indexOf('flagcol') != -1)
{
ToggleMessageFlagged(event.target.parentNode.parentNode);
ToggleMessageFlagged(event.target.parentNode.parentNode.parentNode);
}
else if (targetclass == 'tree-cell-twisty') {
// The twisty is nested three below the treeitem:

Просмотреть файл

@ -60,12 +60,14 @@ Rights Reserved.
MessageType="rdf:http://home.netscape.com/NC-rdf#MessageType"/>
<treecell class="treecell-text" value="rdf:http://home.netscape.com/NC-rdf#Sender" id ="SenderColumnTemplate"/>
<treecell class="treecell-image unreadcol"
allowevents="true"
value="rdf:http://home.netscape.com/NC-rdf#IsUnread"/>
<treecell class="treecell-text" value="rdf:http://home.netscape.com/NC-rdf#Date"/>
<treecell class="tree-cell-image prioritycol"
Priority="rdf:http://home.netscape.com/NC-rdf#Priority"
value="rdf:http://home.netscape.com/NC-rdf#PriorityString"/>
<treecell class="flagcol treecell-image"
allowevents="true"
value="rdf:http://home.netscape.com/NC-rdf#Flagged" />
<treecell class="treecell-text" value="rdf:http://home.netscape.com/NC-rdf#StatusString"/>
<treecell class="treecell-align-right" value="rdf:http://home.netscape.com/NC-rdf#Size"/>

Просмотреть файл

@ -85,7 +85,11 @@
</content>
</binding>
<binding id="treecell-image" extends="xul:image"/>
<binding id="treecell-image">
<content autostretch="never">
<xul:image class="tree-cell-image" inherits="src"/>
</content>
</binding>
<binding id="treecell-header">
<content autostretch="never">