зеркало из https://github.com/mozilla/gecko-dev.git
Fix for 47303. r=mscott
This commit is contained in:
Родитель
1cfca2fb1e
Коммит
80fd76f2b3
|
@ -21,19 +21,24 @@
|
||||||
function ThreadPaneOnClick(event)
|
function ThreadPaneOnClick(event)
|
||||||
{
|
{
|
||||||
if (event.target.localName != "treecell" &&
|
if (event.target.localName != "treecell" &&
|
||||||
event.target.localName != "treeitem")
|
event.target.localName != "treeitem" &&
|
||||||
|
event.target.localName != "image")
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (event.target.localName == "image")
|
||||||
|
var targetclass = event.target.parentNode.getAttribute('class');
|
||||||
|
else
|
||||||
var targetclass = event.target.getAttribute('class');
|
var targetclass = event.target.getAttribute('class');
|
||||||
|
|
||||||
dump('targetclass = ' + targetclass + '\n');
|
dump('targetclass = ' + targetclass + '\n');
|
||||||
|
|
||||||
if(targetclass.indexOf('unreadcol') != -1)
|
if(targetclass.indexOf('unreadcol') != -1)
|
||||||
{
|
{
|
||||||
ToggleMessageRead(event.target.parentNode.parentNode);
|
ToggleMessageRead(event.target.parentNode.parentNode.parentNode);
|
||||||
}
|
}
|
||||||
if(targetclass.indexOf('flagcol') != -1)
|
if(targetclass.indexOf('flagcol') != -1)
|
||||||
{
|
{
|
||||||
ToggleMessageFlagged(event.target.parentNode.parentNode);
|
ToggleMessageFlagged(event.target.parentNode.parentNode.parentNode);
|
||||||
}
|
}
|
||||||
else if (targetclass == 'tree-cell-twisty') {
|
else if (targetclass == 'tree-cell-twisty') {
|
||||||
// The twisty is nested three below the treeitem:
|
// The twisty is nested three below the treeitem:
|
||||||
|
|
|
@ -60,12 +60,14 @@ Rights Reserved.
|
||||||
MessageType="rdf:http://home.netscape.com/NC-rdf#MessageType"/>
|
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-text" value="rdf:http://home.netscape.com/NC-rdf#Sender" id ="SenderColumnTemplate"/>
|
||||||
<treecell class="treecell-image unreadcol"
|
<treecell class="treecell-image unreadcol"
|
||||||
|
allowevents="true"
|
||||||
value="rdf:http://home.netscape.com/NC-rdf#IsUnread"/>
|
value="rdf:http://home.netscape.com/NC-rdf#IsUnread"/>
|
||||||
<treecell class="treecell-text" value="rdf:http://home.netscape.com/NC-rdf#Date"/>
|
<treecell class="treecell-text" value="rdf:http://home.netscape.com/NC-rdf#Date"/>
|
||||||
<treecell class="tree-cell-image prioritycol"
|
<treecell class="tree-cell-image prioritycol"
|
||||||
Priority="rdf:http://home.netscape.com/NC-rdf#Priority"
|
Priority="rdf:http://home.netscape.com/NC-rdf#Priority"
|
||||||
value="rdf:http://home.netscape.com/NC-rdf#PriorityString"/>
|
value="rdf:http://home.netscape.com/NC-rdf#PriorityString"/>
|
||||||
<treecell class="flagcol treecell-image"
|
<treecell class="flagcol treecell-image"
|
||||||
|
allowevents="true"
|
||||||
value="rdf:http://home.netscape.com/NC-rdf#Flagged" />
|
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-text" value="rdf:http://home.netscape.com/NC-rdf#StatusString"/>
|
||||||
<treecell class="treecell-align-right" value="rdf:http://home.netscape.com/NC-rdf#Size"/>
|
<treecell class="treecell-align-right" value="rdf:http://home.netscape.com/NC-rdf#Size"/>
|
||||||
|
|
|
@ -85,7 +85,11 @@
|
||||||
</content>
|
</content>
|
||||||
</binding>
|
</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">
|
<binding id="treecell-header">
|
||||||
<content autostretch="never">
|
<content autostretch="never">
|
||||||
|
|
Загрузка…
Ссылка в новой задаче