|
@@ -3,7 +3,7 @@
|
|
|
# Date 1641471337 18000
|
|
|
# Thu Jan 06 07:15:37 2022 -0500
|
|
|
# Node ID b26cee1637d4d447b316f7466fd88cf523119dc4
|
|
|
-# Parent 722d19665cdc76194daf4974385a4b14ccada61b
|
|
|
+# Parent 5b32f73fa7543038023e3cca9e0f0ffe246553df
|
|
|
Bug 1611647 - Port bug 1579952 - Fix references to xul files in suite.
|
|
|
|
|
|
diff --git a/suite/app/profile/suite-prefs.js b/suite/app/profile/suite-prefs.js
|
|
@@ -4958,32 +4958,32 @@ diff --git a/suite/mailnews/content/ABSearchDialog.xhtml b/suite/mailnews/conten
|
|
|
diff --git a/suite/mailnews/content/FilterListDialog.js b/suite/mailnews/content/FilterListDialog.js
|
|
|
--- a/suite/mailnews/content/FilterListDialog.js
|
|
|
+++ b/suite/mailnews/content/FilterListDialog.js
|
|
|
-@@ -366,17 +366,17 @@ function onEditFilter()
|
|
|
- {
|
|
|
- if (gEditButton.disabled)
|
|
|
+@@ -300,17 +300,17 @@ function onEditFilter()
|
|
|
return;
|
|
|
|
|
|
var selectedFilter = currentFilter();
|
|
|
- var curFilterList = currentFilterList();
|
|
|
- var args = {filter: selectedFilter, filterList: curFilterList};
|
|
|
+ if (!selectedFilter)
|
|
|
+ return;
|
|
|
+
|
|
|
+ let args = {filter: selectedFilter, filterList: gCurrentFilterList};
|
|
|
|
|
|
- window.openDialog("chrome://messenger/content/FilterEditor.xul", "FilterEditor", "chrome,modal,titlebar,resizable,centerscreen", args);
|
|
|
+ window.openDialog("chrome://messenger/content/FilterEditor.xhtml", "FilterEditor", "chrome,modal,titlebar,resizable,centerscreen", args);
|
|
|
|
|
|
- // The focus change will cause a repaint of the row updating any name change
|
|
|
+ if ("refresh" in args && args.refresh) {
|
|
|
+ rebuildFilterList();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Handler function for the 'New...' buttons.
|
|
|
- * Opens the filter dialog for creating a new filter.
|
|
|
- */
|
|
|
-@@ -409,17 +409,17 @@ function onCopyToNewFilter() {
|
|
|
- * and global filters list properties by this function.
|
|
|
- */
|
|
|
- function calculatePositionAndShowCreateFilterDialog(args) {
|
|
|
- var position = Math.max(gFilterTree.currentIndex, 0);
|
|
|
- args.filterList = currentFilterList();
|
|
|
+@@ -358,17 +358,17 @@ function calculatePositionAndShowCreateF
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
args.filterPosition = position;
|
|
|
+ args.filterList = gCurrentFilterList;
|
|
|
args.refresh = false;
|
|
|
|
|
|
- window.openDialog("chrome://messenger/content/FilterEditor.xul",
|
|
@@ -4993,17 +4993,17 @@ diff --git a/suite/mailnews/content/FilterListDialog.js b/suite/mailnews/content
|
|
|
|
|
|
if (args.refresh)
|
|
|
{
|
|
|
- gFilterTreeView.tree.rowCountChanged(position, 1);
|
|
|
- gFilterTree.view.selection.select(position);
|
|
|
- gFilterTree.treeBoxObject.ensureRowIsVisible(position);
|
|
|
-@@ -533,17 +533,17 @@ function moveFilter(motion) {
|
|
|
+ rebuildFilterList();
|
|
|
+
|
|
|
+ // Select the new filter, it is at the position of previous selection.
|
|
|
+@@ -489,17 +489,17 @@ function moveFilter(motion) {
|
|
|
+
|
|
|
moveCurrentFilter(moveFilterNative);
|
|
|
}
|
|
|
|
|
|
function viewLog()
|
|
|
{
|
|
|
- var filterList = currentFilterList();
|
|
|
- var args = {filterList: filterList};
|
|
|
+ let args = {filterList: gCurrentFilterList};
|
|
|
|
|
|
- window.openDialog("chrome://messenger/content/viewLog.xul", "FilterLog", "chrome,modal,titlebar,resizable,centerscreen", args);
|
|
|
+ window.openDialog("chrome://messenger/content/viewLog.xhtml", "FilterLog", "chrome,modal,titlebar,resizable,centerscreen", args);
|
|
@@ -5012,9 +5012,9 @@ diff --git a/suite/mailnews/content/FilterListDialog.js b/suite/mailnews/content
|
|
|
function onFilterUnload()
|
|
|
{
|
|
|
// make sure to save the filter to disk
|
|
|
- var filterList = currentFilterList();
|
|
|
- if (filterList)
|
|
|
- filterList.saveToDefaultFile();
|
|
|
+ if (gCurrentFilterList)
|
|
|
+ gCurrentFilterList.saveToDefaultFile();
|
|
|
+
|
|
|
diff --git a/suite/mailnews/content/FilterListDialog.xhtml b/suite/mailnews/content/FilterListDialog.xhtml
|
|
|
--- a/suite/mailnews/content/FilterListDialog.xhtml
|
|
|
+++ b/suite/mailnews/content/FilterListDialog.xhtml
|