diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/bzpage.js | 1 | ||||
-rw-r--r-- | data/rhbzpage.js | 12 |
2 files changed, 3 insertions, 10 deletions
diff --git a/data/bzpage.js b/data/bzpage.js index c71ab51..7d59f22 100644 --- a/data/bzpage.js +++ b/data/bzpage.js @@ -24,6 +24,7 @@ var submitHandlerInstalled = false; // for setUpLogging * central handler processing messages from the main script. */ onMessage = function onMessage(msg) { + console.log("onMessage - incoming : msg.cmd = " + msg.cmd); switch (msg.cmd) { case "ReloadThePage": document.location.reload(true); diff --git a/data/rhbzpage.js b/data/rhbzpage.js index f0347d7..3eaed66 100644 --- a/data/rhbzpage.js +++ b/data/rhbzpage.js @@ -156,6 +156,8 @@ function addAttachmentCallback(resp) { function addAttachment(data, callback, param) { var params = []; + console.log("addAttachment : constantData.passwordState.passAvailable = " + + constantData.passwordState.passAvailable); if (!constantData.passwordState.passAvailable) { console.log("addAttachment : No password, no XML-RPC calls; sorry"); return null; @@ -343,16 +345,6 @@ function addCheckShowLink(oldAtt, snippet) { */ function markBadAttachments(atts) { var badMIMEArray = [ "application/octet-stream", "text/x-log", "undefined" ]; -/* FIXME -error: An exception occurred. -Traceback (most recent call last): - File "/home/matej/archiv/2011/projekty/bugzilla-triage/data/bzpage.js", line 1005, in - File "/home/matej/archiv/2011/projekty/bugzilla-triage/data/bzpage.js", line 998, in startup - File "/home/matej/archiv/2011/projekty/bugzilla-triage/data/rhbzpage.js", line 915, in RHBZinit - File "/home/matej/archiv/2011/projekty/bugzilla-triage/data/rhbzpage.js", line 344, in markBadAttachments -TypeError: "use strict";constantData.passwordState is undefined -*/ - // FIXME this should work console.log("markBadAttachments : constantData.passwordState.toSource() = " + constantData.passwordState.toSource()); if (!constantData.passwordState.passAvailable) { |