diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-02-16 18:50:43 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-02-16 18:57:05 +0100 |
commit | 775cf3d628588ede2ddee8346bf8b58dcfd8dde0 (patch) | |
tree | 3c0ee0cd1b8bf54283e1c623519a55843105cb96 /data | |
parent | 1e60a32939f90ebd576da0a4e1c04c6c09394e31 (diff) | |
download | bugzilla-triage-775cf3d628588ede2ddee8346bf8b58dcfd8dde0.tar.gz |
Remove whole ifExist magic, it is not necessary anymore anyway.
* add also protection to queryUpstream function for situation when
constantData.queryUpstreamBug structure is not present.
Diffstat (limited to 'data')
-rw-r--r-- | data/bzpage.js | 8 | ||||
-rw-r--r-- | data/rhbzpage.js | 8 |
2 files changed, 5 insertions, 11 deletions
diff --git a/data/bzpage.js b/data/bzpage.js index 208f64f..872f4f1 100644 --- a/data/bzpage.js +++ b/data/bzpage.js @@ -348,14 +348,6 @@ function createNewButton (location, after, cmdObj) { return ; } - // creation of button might be conditional on existence of data in constantData - if ("ifExist" in cmdObj) { - // We do have constantData now, but we shouldn't TODO - if (!(cmdObj.ifExist in constantData)) { - return ; - } - } - var newButton = document.createElement("input"); newButton.setAttribute("id", newId); newButton.setAttribute("type", "button"); diff --git a/data/rhbzpage.js b/data/rhbzpage.js index d12b4a1..ce0d3fd 100644 --- a/data/rhbzpage.js +++ b/data/rhbzpage.js @@ -81,8 +81,7 @@ function setDefaultAssignee() { createNewButton("bz_assignee_edit_container",true, { "name": "Def. Assignee", "assignee": "default" - }); // TODO when this will be a production we can remove - // rh-common/setDefaultAssignee from RH_Data-packages.json + }); } } @@ -491,6 +490,10 @@ function queryUpstreamCallback(text) { * @return none */ function queryUpstream() { + if (!constantData.queryUpstreamBug) { + alert("We don't have constantData.queryUpstreamBug set up!"); + return null; + } var text = getSelection(); if (!text) { postMessage(new Message("GetClipboard", "queryUpstream")); @@ -655,7 +658,6 @@ function fillInChipMagic(XorgLogAttList, XorgLogAttListIndex) { replace(/[\s"]+/g," ").trim(); // that.packages["rh-xorg"].chipMagic.chipMagic = interestingLine+"\t"+interestingArray[1] // .toUpperCase(); - // TODO we can remove rh-common / chipMagic element from RH_Data-packages.json createNewButton("status_whiteboard", true, { "name": "Fill In", "chipMagic": true |