summaryrefslogtreecommitdiffstats
path: root/extensions/RequestNagger/web/js
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-10-29 06:32:25 +0100
committerByron Jones <bjones@mozilla.com>2013-10-29 06:32:25 +0100
commit4c09622b4432820e49795345a747e530e5aa0764 (patch)
tree6fc3203ae7296de1fadadf1fce06d6644c4debfc /extensions/RequestNagger/web/js
parent9b6f5d07a80ff630ed76108e0ca9689b4e2410f5 (diff)
downloadbugzilla-4c09622b4432820e49795345a747e530e5aa0764.tar.gz
bugzilla-4c09622b4432820e49795345a747e530e5aa0764.tar.xz
Bug 892615: Add a 24 hour nag to all requests (review, feedback and need-info) and make them follow-able
Diffstat (limited to 'extensions/RequestNagger/web/js')
-rw-r--r--extensions/RequestNagger/web/js/requestnagger.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/extensions/RequestNagger/web/js/requestnagger.js b/extensions/RequestNagger/web/js/requestnagger.js
new file mode 100644
index 000000000..e5cc43deb
--- /dev/null
+++ b/extensions/RequestNagger/web/js/requestnagger.js
@@ -0,0 +1,13 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This Source Code Form is "Incompatible With Secondary Licenses", as
+ * defined by the Mozilla Public License, v. 2.0. */
+
+YAHOO.util.Event.onDOMReady(function() {
+ YAHOO.util.Event.addListener('defer-until', 'change', function() {
+ YAHOO.util.Dom.get('defer-date').innerHTML = 'until ' + this.value;
+ });
+ bz_fireEvent(YAHOO.util.Dom.get('defer-until'), 'change');
+});