summaryrefslogtreecommitdiffstats
path: root/js/keyword-chooser.js
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-11-29 09:20:05 +0100
committermkanat%bugzilla.org <>2007-11-29 09:20:05 +0100
commit9dfa47cccbf6cf4f98d807c1c61400fc138e18ff (patch)
tree14f2bcdec784bc9ad056894af2d85e92acd5f295 /js/keyword-chooser.js
parentab73b625a7fb071794cd1152de3c8486d91788f6 (diff)
downloadbugzilla-9dfa47cccbf6cf4f98d807c1c61400fc138e18ff.tar.gz
bugzilla-9dfa47cccbf6cf4f98d807c1c61400fc138e18ff.tar.xz
Bug 397099: Date/Time Fields should have a JavaScript widget for picking a date
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, r=glob, a=mkanat
Diffstat (limited to 'js/keyword-chooser.js')
-rw-r--r--js/keyword-chooser.js13
1 files changed, 2 insertions, 11 deletions
diff --git a/js/keyword-chooser.js b/js/keyword-chooser.js
index afc90b491..3bbf1bee2 100644
--- a/js/keyword-chooser.js
+++ b/js/keyword-chooser.js
@@ -65,17 +65,8 @@ KeywordChooser.prototype =
positionChooser: function()
{
- if (this._positioned) {
- return;
- }
-
- var elemY = bz_findPosY(this._parent);
- var elemX = bz_findPosX(this._parent);
- var elemH = this._parent.offsetHeight;
-
- this._chooser.style.left = elemX + "px";
- this._chooser.style.top = elemY + elemH + 1 + "px";
-
+ if (this._positioned) return;
+ bz_overlayBelow(this._chooser, this._parent);
this._positioned = true;
},