diff options
Diffstat (limited to 'lib/util.js')
-rw-r--r-- | lib/util.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/util.js b/lib/util.js index 76c8a02..18a3c1b 100644 --- a/lib/util.js +++ b/lib/util.js @@ -60,10 +60,13 @@ var getParamsFromURL = exports.getParamsFromURL = function getParamsFromURL (url return params; }; +/** + * FIXME this should go to bzpage.js ... no reason to keep it here + */ exports.getBugNo = function getBugNo(url) { var params = getParamsFromURL(url); if (params && params.id) { - return parseInt(params.id, 10); + return params.id; } }; @@ -207,4 +210,4 @@ exports.getObjectKeys = function getObjectKeys(obj) { } } return keys; -};
\ No newline at end of file +}; |