aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-06-17 12:03:40 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-06-17 12:03:40 +0200
commite51092dd40432d35c53ece84181c1d0041506a5d (patch)
tree2c2c14f3a5f7a9a6593e6fad413efa01978628a7 /lib/bzpage.js
parenta736a291841da4f5b8f4525618b836856c2b0790 (diff)
downloadbugzilla-triage-e51092dd40432d35c53ece84181c1d0041506a5d.tar.gz
Following https://bugzilla.mozilla.org/show_bug.cgi?id=572566 example now
works.
Diffstat (limited to 'lib/bzpage.js')
-rw-r--r--lib/bzpage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js
index 9f504c0..dcaa43c 100644
--- a/lib/bzpage.js
+++ b/lib/bzpage.js
@@ -22,8 +22,8 @@ BZPage.prototype.getURL = function getURL () {
return this.doc.location.href;
};
-BZPage.prototype.toString = function toString () {
- return "[Object BZPage]";
+BZPage.prototype.getBugId = function getBugId () {
+ return util.getBugNo(this.doc.location.href);
};
//exports.BZPage = apiUtils.publicConstructor(BZPage);