Commit r2379: https://sourceforge.net/p/mrbs/code/2379/
------------------------------------------------------------------------
r2379 | cimorrison | 2012-08-13 22:14:51 +0100 (Mon, 13 Aug 2012) | 1 line
Changed paths:
M /mrbs/trunk/web/js/edit_entry.js.php
Added some missing radix parameters to parseInt() calls
------------------------------------------------------------------------
Index: mrbs/trunk/web/js/edit_entry.js.php
===================================================================
--- mrbs/trunk/web/js/edit_entry.js.php (revision 2378)
+++ mrbs/trunk/web/js/edit_entry.js.php (revision 2379)
@@ -454,9 +454,9 @@
else
{
startIndex = startSelect.selectedIndex;
- startValue = parseInt(startSelect.options[startIndex].value);
+ startValue = parseInt(startSelect.options[startIndex].value, 10);
endIndex = endSelect.selectedIndex;
- endValue = parseInt(endSelect.options[endIndex].value);
+ endValue = parseInt(endSelect.options[endIndex].value, 10);
<?php
// If the start value has changed then we adjust the endvalue
// to keep the duration the same. (If the end value has changed
@@ -668,7 +668,7 @@
{
startOptions[area][j] = [];
startOptions[area][j]['text'] = startSelect.options[j].text;
- startOptions[area][j]['value'] =
parseInt(startSelect.options[j].value);
+ startOptions[area][j]['value'] =
parseInt(startSelect.options[j].value, 10);
}
endOptions[area] = [];
@@ -677,7 +677,7 @@
{
endOptions[area][j] = [];
endOptions[area][j]['text'] = endSelect.options[j].text;
- endOptions[area][j]['value'] = parseInt(endSelect.options[j].value);
+ endOptions[area][j]['value'] = parseInt(endSelect.options[j].value,
10);
}
}
@@ -692,8 +692,8 @@
allDay = form["all_day" + currentArea];
if (allDay &&
!allDay.disabled &&
- (parseInt(startSelect.options[startSelect.selectedIndex].value) ==
startOptions[currentArea][0]['value']) &&
- (parseInt(endSelect.options[endSelect.selectedIndex].value) ==
endOptions[currentArea][nEndOptions[currentArea] - 1]['value']))
+ (parseInt(startSelect.options[startSelect.selectedIndex].value, 10) ==
startOptions[currentArea][0]['value']) &&
+ (parseInt(endSelect.options[endSelect.selectedIndex].value, 10) ==
endOptions[currentArea][nEndOptions[currentArea] - 1]['value']))
{
allDay.checked = true;
startSelect.disabled = true;
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits