[Pkg-mozext-commits] [compactheader] 287/441: New version 1.4.5beta2: Fix bug if dispMUA is not installed
David Prévot
taffit at moszumanska.debian.org
Wed Mar 18 12:29:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository compactheader.
commit 5a5450e9424f1887788a5cc203d1d10bfebcbe82
Author: joachim <none at none>
Date: Fri Sep 23 23:52:03 2011 +0200
New version 1.4.5beta2: Fix bug if dispMUA is not installed
--HG--
branch : fix_rss_after_preferences_change
---
chrome/CompactHeader/content/toolbar.js | 15 +++++++++------
install.rdf | 2 +-
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/chrome/CompactHeader/content/toolbar.js b/chrome/CompactHeader/content/toolbar.js
index c64e918..dcef686 100644
--- a/chrome/CompactHeader/content/toolbar.js
+++ b/chrome/CompactHeader/content/toolbar.js
@@ -307,12 +307,15 @@ org.mozdev.compactHeader.toolbar = function() {
pub.onChangeDispMUAicon = function() {
org.mozdev.compactHeader.debug.log("onChangeDispMUAicon start");
- var imageSrc = document.getElementById("dispMUAbroadcast").getAttribute("src");
- org.mozdev.compactHeader.debug.log("onChangeDispMUAicon: " + imageSrc);
- var IconContainerDispMUA = null;
- /* toolbar button */
- if (IconContainerDispMUA = document.getElementById("CompactHeader_button-dispMUA")) {
- IconContainerDispMUA.setAttribute("image", imageSrc);
+ var dispMUAbroadcast = document.getElementById("dispMUAbroadcast")
+ if (dispMUAbroadcast) {
+ var imageSrc = dispMUAbroadcast.getAttribute("src");
+ org.mozdev.compactHeader.debug.log("onChangeDispMUAicon: " + imageSrc);
+ var IconContainerDispMUA = null;
+ /* toolbar button */
+ if (IconContainerDispMUA = document.getElementById("CompactHeader_button-dispMUA")) {
+ IconContainerDispMUA.setAttribute("image", imageSrc);
+ }
}
org.mozdev.compactHeader.debug.log("onChangeDispMUAicon stop");
};
diff --git a/install.rdf b/install.rdf
index e07e407..6850e06 100644
--- a/install.rdf
+++ b/install.rdf
@@ -6,7 +6,7 @@
<RDF:Description about="urn:mozilla:install-manifest">
<em:name>CompactHeader</em:name>
- <em:version>1.4.5beta1</em:version>
+ <em:version>1.4.5beta2</em:version>
<em:description>Add ability to reduce header size to one or two lines. Linkify subjects in RSS feeds.</em:description>
<em:creator>Joachim Herb</em:creator>
<em:contributor>Zamula</em:contributor>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/compactheader.git
More information about the Pkg-mozext-commits
mailing list