bkruse: branch 1.4 r1552 - /branches/1.4/config/timerules.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Sun Sep 9 03:24:36 CDT 2007


Author: bkruse
Date: Sun Sep  9 03:24:16 2007
New Revision: 1552

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1552
Log:
Fixed an issue with parseint, returning zero
when the selectedIndex was 0? wierd. Fixed.
(closes issue #10470)
(closes issue #10663)

Modified:
    branches/1.4/config/timerules.html

Modified: branches/1.4/config/timerules.html
URL: http://svn.digium.com/view/asterisk-gui/branches/1.4/config/timerules.html?view=diff&rev=1552&r1=1551&r2=1552
==============================================================================
--- branches/1.4/config/timerules.html (original)
+++ branches/1.4/config/timerules.html Sun Sep  9 03:24:16 2007
@@ -435,11 +435,15 @@
 function form_updatevalues(f){
 	_$('id_rulename').value = timebasedrules[f].rulename;
 
-	_$('startime_hour').selectedIndex = parseInt(timebasedrules[f].ruleconditons.fromhour);
-	_$('startime_minute').selectedIndex = parseInt(timebasedrules[f].ruleconditons.fromminutes);
-
-	_$('endtime_hour').selectedIndex = parseInt(timebasedrules[f].ruleconditons.tohour);
-	_$('endtime_minute').selectedIndex = parseInt(timebasedrules[f].ruleconditons.tominutes);
+	var fh = timebasedrules[f].ruleconditons.fromhour;
+	var fm = timebasedrules[f].ruleconditons.fromminutes;
+	var th = timebasedrules[f].ruleconditons.tohour;
+	var tm = timebasedrules[f].ruleconditons.tominutes;
+
+	_$('startime_hour').selectedIndex = fh;
+	_$('startime_minute').selectedIndex = fm;
+	_$('endtime_hour').selectedIndex = th;
+	_$('endtime_minute').selectedIndex = tm;
 
 	var find_index = function(el,val){
 		for(var t=0; t< el.options.length; t++){




More information about the asterisk-gui-commits mailing list