summaryrefslogtreecommitdiffstats
path: root/mailnews/addrbook/content/abResultsPane.js
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-11-10 22:19:01 -0500
committerMatt A. Tobin <email@mattatobin.com>2019-11-10 22:19:01 -0500
commit0a8849ad686810acdbab4a3c8a1c539cf36258a7 (patch)
tree72f83eda5fcadee5c2e9156315ac761c6f0ee34b /mailnews/addrbook/content/abResultsPane.js
parent43919ab8c75d6cd32ff3fdc4b3e01cdfb10178b9 (diff)
downloadUXP-0a8849ad686810acdbab4a3c8a1c539cf36258a7.tar
UXP-0a8849ad686810acdbab4a3c8a1c539cf36258a7.tar.gz
UXP-0a8849ad686810acdbab4a3c8a1c539cf36258a7.tar.lz
UXP-0a8849ad686810acdbab4a3c8a1c539cf36258a7.tar.xz
UXP-0a8849ad686810acdbab4a3c8a1c539cf36258a7.zip
Bug 1320475 - Fix broken controllers for cmd_printcard and cmd_printcardpreview.
Tag #1273
Diffstat (limited to 'mailnews/addrbook/content/abResultsPane.js')
-rw-r--r--mailnews/addrbook/content/abResultsPane.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/mailnews/addrbook/content/abResultsPane.js b/mailnews/addrbook/content/abResultsPane.js
index 58a1771cb..9a31f701e 100644
--- a/mailnews/addrbook/content/abResultsPane.js
+++ b/mailnews/addrbook/content/abResultsPane.js
@@ -366,6 +366,8 @@ var ResultsPaneController =
case "cmd_selectAll":
case "cmd_delete":
case "button_delete":
+ case "cmd_printcardpreview":
+ case "cmd_printcard":
case "cmd_properties":
case "cmd_newlist":
case "cmd_newCard":
@@ -414,6 +416,9 @@ var ResultsPaneController =
}
}
return (enabled && (numSelected > 0));
+ case "cmd_printcardpreview":
+ case "cmd_printcard":
+ return (GetNumSelectedCards() > 0);
case "cmd_properties":
// Temporary fix for SeaMonkey (see bug 1318852).
// goSetLabelAccesskeyTooltiptext() is only defined in mail/.