[Pkg-privacy-commits] [xul-ext-monkeysphere] 203/296: simplify setStatus function
Ximin Luo
infinity0 at moszumanska.debian.org
Mon Aug 24 07:39:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository xul-ext-monkeysphere.
commit 20529631f91da8dc27f9873ad08d7b324f15215a
Author: Jameson Rollins <jrollins at finestructure.net>
Date: Sun Apr 25 14:47:13 2010 -0400
simplify setStatus function
---
chrome/content/monkeysphere.js | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/chrome/content/monkeysphere.js b/chrome/content/monkeysphere.js
index f17eb7b..47606c6 100644
--- a/chrome/content/monkeysphere.js
+++ b/chrome/content/monkeysphere.js
@@ -87,8 +87,7 @@ var monkeysphere = (function() {
// set site monkeysphere status
var setStatus = function(browser, state, message) {
if ( typeof message === 'undefined' ) {
- var key = "status" + state;
- message = monkeysphere.messages.getString(key);
+ message = '';
}
ms.log("set browser status: " + state + ', ' + message);
browser.monkeysphere = { state: state, message: message };
@@ -140,7 +139,7 @@ var monkeysphere = (function() {
ms.log("sending query...");
client.send(query);
ms.log("query sent");
- setStatus(browser, 'INPROGRESS');
+ setStatus(browser, 'INPROGRESS', messages.getString('statusINPROGRESS'));
};
////////////////////////////////////////////////////////////
@@ -303,7 +302,7 @@ var monkeysphere = (function() {
} else {
ms.log("validation agent did not respond.");
//alert(monkeysphere.messages.getString("agentError"));
- setStatus(browser, 'ERROR', monkeysphere.messages.getString('noResponseFromAgent'));
+ setStatus(browser, 'ERROR', messages.getString('noResponseFromAgent'));
}
// update the current display, so that if we're looking at the
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/xul-ext-monkeysphere.git
More information about the Pkg-privacy-commits
mailing list