From 76f6498fd98c92f6ad85ec628017c07ae40f61db Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Wed, 22 Jun 2016 07:43:58 -0400 Subject: jQuery datepicker added to interfaces.php and interfaces_ppps_edit.php for setting custom expirey date (cherry picked from commit d85d82b7686d5899948e6ec4b1587e74937820cf) --- src/usr/local/www/interfaces.php | 3 ++- src/usr/local/www/interfaces_ppps_edit.php | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/usr') diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php index dac1875..9a76f94 100644 --- a/src/usr/local/www/interfaces.php +++ b/src/usr/local/www/interfaces.php @@ -2633,7 +2633,6 @@ $group->add(new Form_Input( [min => 0, max => 59] ))->setHelp('Minutes (0-59)'); -// ToDo: Need a date-picker here $group->add(new Form_Input( 'pppoe_resetdate', null, @@ -3671,6 +3670,8 @@ events.push(function() { setPresets($('input[name=adv_dhcp_pt_values]:checked').val()); }); + $('#pppoe_resetdate').datepicker(); + }); //]]> diff --git a/src/usr/local/www/interfaces_ppps_edit.php b/src/usr/local/www/interfaces_ppps_edit.php index b36c40a..a451e80 100644 --- a/src/usr/local/www/interfaces_ppps_edit.php +++ b/src/usr/local/www/interfaces_ppps_edit.php @@ -1202,6 +1202,8 @@ events.push(function() { if ($('providerplan').size() == 0) { hideInput('providerplan', true); } + + $('#pppoe_resetdate').datepicker(); }); //]]> -- cgit v1.1