Bug 68174 - "Remove event handlers from within <template> (mail/ and mailnews/ part)" ((Gv1a-TB) <FilterListDialog.*> (+ NNTP server fix)) [p=sgautherie.bz@free.fr (Serge Gautherie) r=philor]

This commit is contained in:
reed%reedloden.com 2008-02-06 21:37:25 +00:00
Родитель 8e8d94e6e0
Коммит a53ab17823
2 изменённых файлов: 11 добавлений и 9 удалений

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

@ -177,9 +177,9 @@ function onCancel()
function onFilterServerClick(selection)
{
var itemURI = selection.getAttribute('id');
var itemURI = selection.getAttribute('itemUri');
if (!itemURI || itemURI == gCurrentServerURI)
if (itemURI == gCurrentServerURI)
return;
// Save the current filters to disk before switching because

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

@ -76,20 +76,21 @@
datasources="rdf:msgaccountmanager rdf:mailnewsfolders"
sortResource="http://home.netscape.com/NC-rdf#FolderTreeName"
sortDirection="ascending"
ref="msgaccounts:/">
ref="msgaccounts:/"
oncommand="onFilterServerClick(event.target);">
<template>
<rule iscontainer="true" isempty="false" nc:ServerType="nntp">
<menupopup>
<menu uri="..."
oncommand="onFilterServerClick(event.target)"
class="folderMenuItem menu-iconic"
IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"
label="rdf:http://home.netscape.com/NC-rdf#Name">
label="rdf:http://home.netscape.com/NC-rdf#Name"
itemUri="rdf:*">
<menupopup class="menulist-menupopup">
<menuitem label="&choosethisnewsserver.label;"
oncommand="onFilterServerClick(event.target.parentNode.parentNode)"/>
itemUri="rdf:*"/>
<menuseparator/>
</menupopup>
</menu>
@ -102,18 +103,19 @@
IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"
label="rdf:http://home.netscape.com/NC-rdf#Name"/>
label="rdf:http://home.netscape.com/NC-rdf#Name"
itemUri="rdf:*"/>
</menupopup>
</rule>
<rule nc:SupportsFilters="true">
<menupopup>
<menuitem uri="..." value="..."
oncommand="onFilterServerClick(event.target)"
class="folderMenuItem menuitem-iconic"
IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"
label="rdf:http://home.netscape.com/NC-rdf#Name"/>
label="rdf:http://home.netscape.com/NC-rdf#Name"
itemUri="rdf:*"/>
</menupopup>
</rule>
</template>