From 4c09622b4432820e49795345a747e530e5aa0764 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 29 Oct 2013 13:32:25 +0800 Subject: Bug 892615: Add a 24 hour nag to all requests (review, feedback and need-info) and make them follow-able --- extensions/RequestNagger/web/js/requestnagger.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 extensions/RequestNagger/web/js/requestnagger.js (limited to 'extensions/RequestNagger/web/js/requestnagger.js') 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'); +}); -- cgit v1.2.3-24-g4f1b