rbrindley: branch rbrindley/astman_revamp r4630 - /team/rbrindley/astman_reva...

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Mar 12 12:00:26 CDT 2009


Author: rbrindley
Date: Thu Mar 12 12:00:22 2009
New Revision: 4630

URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4630
Log:

- .length didn't work well with jQuery, moved to :checked.val()


Modified:
    team/rbrindley/astman_revamp/config/js/timeintervals.js

Modified: team/rbrindley/astman_revamp/config/js/timeintervals.js
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/js/timeintervals.js?view=diff&rev=4630&r1=4629&r2=4630
==============================================================================
--- team/rbrindley/astman_revamp/config/js/timeintervals.js (original)
+++ team/rbrindley/astman_revamp/config/js/timeintervals.js Thu Mar 12 12:00:22 2009
@@ -85,11 +85,11 @@
 			}
 		}
 
-		if ($('#ti_byDayofWeek:selected').length) {
+		if ($('#ti_type_byDayofWeek:checked').val()) {
 			interval.weekdays = $('#edit_ti_dayofweek_start').val() + '-' + $('#edit_ti_dayofweek_end').val();
 		}
 
-		if ($('#ti_type_byGroupofDates:selected').length) {
+		if ($('#ti_type_byGroupofDates:checked').val()) {
 			interval.days = $('#edit_ti_from_date').val();
 
 			interval.days = interval.days.toString();




More information about the asterisk-gui-commits mailing list