diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-07-16 17:45:14 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-07-16 17:45:14 +0200 |
commit | d53b9140d0768522eeb6a024a17fc41dc73b4966 (patch) | |
tree | b34cd2e97df964d3f7012bb110b70d0cf8025422 /lib/logger.js | |
parent | 641d7c3743be440112952140ca799b6748b261c7 (diff) | |
download | bugzilla-triage-d53b9140d0768522eeb6a024a17fc41dc73b4966.tar.gz |
Create a special library prompts, add prompts.prompt, and switch bzpage
and logger to use it.
Diffstat (limited to 'lib/logger.js')
-rw-r--r-- | lib/logger.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/logger.js b/lib/logger.js index df01d37..5926bea 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -5,6 +5,7 @@ var urlMod = require("url"); var utilMod = require("util"); var Color = require("color").Color; var tabs = require("tabs"); +var prompts = require("prompts"); var apiUtils = require("api-utils"); function Logger(store, abbsMap) { @@ -23,7 +24,7 @@ Logger.prototype.addLogRecord = function(that) { rec.date = new Date(); rec.url = that.doc.location.toString(); rec.title = that.title; - var comment = tabs.activeTab.contentWindow.prompt( + var comment = prompts.prompt( "Enter comments for this comment"); console.log("comment = " + comment); if (comment && comment.length > 0) { |