зеркало из https://github.com/mozilla/gecko-dev.git
If startHour is greater than endHour, switch 'em.
This commit is contained in:
Родитель
f1be69c981
Коммит
a7caa1f3d9
|
@ -247,6 +247,14 @@ function Commit()
|
|||
{
|
||||
endHourRange = endHourRangeNode.options[endHourRangeNode.selectedIndex].value;
|
||||
}
|
||||
|
||||
if (startHourRange > endHourRange)
|
||||
{
|
||||
var temp = startHourRange;
|
||||
startHourRange = endHourRange;
|
||||
endHourRange = temp;
|
||||
}
|
||||
|
||||
var duration = document.getElementById("duration").value;
|
||||
if (duration == "")
|
||||
{
|
||||
|
|
|
@ -247,6 +247,14 @@ function Commit()
|
|||
{
|
||||
endHourRange = endHourRangeNode.options[endHourRangeNode.selectedIndex].value;
|
||||
}
|
||||
|
||||
if (startHourRange > endHourRange)
|
||||
{
|
||||
var temp = startHourRange;
|
||||
startHourRange = endHourRange;
|
||||
endHourRange = temp;
|
||||
}
|
||||
|
||||
var duration = document.getElementById("duration").value;
|
||||
if (duration == "")
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче