aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/util.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-04-19 00:19:53 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:53:48 +0200
commit7509c91794f93a5b4445239429c2b918f771b543 (patch)
tree471109dbac3840035da9acbf1a446faec0d8877e /data/lib/util.js
parentca9cda2c29720cbd82d41eb7926dd1457a4226e4 (diff)
downloadbugzilla-triage-7509c91794f93a5b4445239429c2b918f771b543.tar.gz
Working on analysis of bug-page-mod module.
* Add some notes * remove getBugNumber and replaced with my getBugNo.
Diffstat (limited to 'data/lib/util.js')
-rw-r--r--data/lib/util.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/data/lib/util.js b/data/lib/util.js
index 92b9436..02cda2d 100644
--- a/data/lib/util.js
+++ b/data/lib/util.js
@@ -68,8 +68,12 @@ function parseXMLfromString (inStuff) {
* Get a bug no
*/
function getBugNo() {
- console.log("bugNo = " + document.getElementsByName("id")[0].value);
- return document.getElementsByName("id")[0].value;
+ var bugNoElem = document.forms.namedItem('changeform').getElementsByName("id")[0];
+ if (bugNoElem) {
+ return bugNoElem.value;
+ } else {
+ return null;
+ }
}
/**