mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-18 19:48:53 +00:00
Fixed day start > day end issue
Monotone-Parent: 0c9dd83dd8ccf4f99590b84d0154f2fdc166550f Monotone-Revision: 083c5eacbea5cf39b26ae89e1fa54412357634af Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-09-22T20:54:09 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,15 +1,29 @@
|
||||
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
|
||||
function savePreferences(sender) {
|
||||
var sendForm = true;
|
||||
|
||||
var sigList = $("signaturePlacementList");
|
||||
if (sigList)
|
||||
sigList.disabled=false;
|
||||
sigList.disabled = false;
|
||||
|
||||
if ($("categoriesList")) {
|
||||
serializeCategories(null);
|
||||
}
|
||||
|
||||
$("mainForm").submit();
|
||||
if ($("dayStartTime")) {
|
||||
var start = $("dayStartTime");
|
||||
var selectedStart = parseInt(start.options[start.selectedIndex].value);
|
||||
var end = $("dayEndTime");
|
||||
var selectedEnd = parseInt(end.options[end.selectedIndex].value);
|
||||
if (selectedStart >= selectedEnd) {
|
||||
alert (getLabel ("Day start time must be prior to day end time."));
|
||||
sendForm = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (sendForm)
|
||||
$("mainForm").submit();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user