diff options
Diffstat (limited to 'data/lib/util.js')
-rw-r--r-- | data/lib/util.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/lib/util.js b/data/lib/util.js index 77e7bfa..abf8824 100644 --- a/data/lib/util.js +++ b/data/lib/util.js @@ -68,8 +68,8 @@ function parseXMLfromString (inStuff) { * Get a bug no */ function getBugNo() { - console.log("bugNo = " + document.forms.namedItem('changeform').getElementsByName("id")[0].value); - return document.forms.namedItem('changeform').getElementsByName("id")[0].value; + console.log("bugNo = " + document.getElementsByName("id")[0].value); + return document.getElementsByName("id")[0].value; } /** |