bkruse: branch asterisknow r1554 - in /branches/asterisknow: ./ config/
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Sun Sep 9 03:26:20 CDT 2007
Author: bkruse
Date: Sun Sep 9 03:26:20 2007
New Revision: 1554
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1554
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:
branches/asterisknow/ (props changed)
branches/asterisknow/config/timerules.html
Propchange: branches/asterisknow/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Sun Sep 9 03:26:20 2007
@@ -1,1 +1,1 @@
-/branches/1.4:1-1296,1316,1326,1332,1336-1338,1342,1346,1356,1362,1381,1384,1395,1399,1402,1413,1416,1426,1432,1435,1439,1442,1455,1465,1475,1478,1481,1488,1491,1494,1497,1500,1504,1507,1510,1513,1516,1520,1530,1534,1540,1544,1548
+/branches/1.4:1-1296,1316,1326,1332,1336-1338,1342,1346,1356,1362,1381,1384,1395,1399,1402,1413,1416,1426,1432,1435,1439,1442,1455,1465,1475,1478,1481,1488,1491,1494,1497,1500,1504,1507,1510,1513,1516,1520,1530,1534,1540,1544,1548,1552
Modified: branches/asterisknow/config/timerules.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/timerules.html?view=diff&rev=1554&r1=1553&r2=1554
==============================================================================
--- branches/asterisknow/config/timerules.html (original)
+++ branches/asterisknow/config/timerules.html Sun Sep 9 03:26:20 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