bkruse: trunk r1553 - in /trunk: ./ config/timerules.html

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


Author: bkruse
Date: Sun Sep  9 03:26:16 2007
New Revision: 1553

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1553
Log:
Merged revisions 1552 via svnmerge from 
https://origsvn.digium.com/svn/asterisk-gui/branches/1.4

........
r1552 | bkruse | 2007-09-09 03:24:16 -0500 (Sun, 09 Sep 2007) | 5 lines

Fixed an issue with parseint, returning zero
when the selectedIndex was 0? wierd. Fixed.
(closes issue #10470)
(closes issue #10663)

........

Modified:
    trunk/   (props changed)
    trunk/config/timerules.html

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/config/timerules.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/timerules.html?view=diff&rev=1553&r1=1552&r2=1553
==============================================================================
--- trunk/config/timerules.html (original)
+++ trunk/config/timerules.html Sun Sep  9 03:26: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