aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/lib/util.js')
-rw-r--r--data/lib/util.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/data/lib/util.js b/data/lib/util.js
index be674bc..064887c 100644
--- a/data/lib/util.js
+++ b/data/lib/util.js
@@ -68,12 +68,8 @@ function parseXMLfromString (inStuff) {
* Get a bug no
*/
function getBugNo() {
- var bugNoElem = document.forms.namedItem('changeform').getElementsByName("id")[0];
- if (bugNoElem) {
- return bugNoElem.value;
- } else {
- return null;
- }
+ console.log("bugNo = " + document.getElementsByName("id")[0].value);
+ return document.getElementsByName("id")[0].value;
}
/**