mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
default working hours; return default action; disabled url button; allow empty item title
This commit is contained in:
parent
fc9c3b527e
commit
01f2dabb3d
@ -1322,6 +1322,10 @@
|
||||
this.deleteHit(event.originalTarget);
|
||||
event.stopPropagation();
|
||||
break;
|
||||
case 13:
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
break;
|
||||
}
|
||||
}
|
||||
]]>
|
||||
@ -1341,6 +1345,10 @@
|
||||
this.arrowHit(event.originalTarget, 1);
|
||||
event.stopPropagation();
|
||||
break;
|
||||
case KeyEvent.DOM_VK_RETURN:
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
break;
|
||||
}
|
||||
}
|
||||
]]>
|
||||
|
@ -113,8 +113,8 @@
|
||||
<field name="mDateFormatter">null</field>
|
||||
<field name="mStartDate">null</field>
|
||||
<field name="mEndDate">null</field>
|
||||
<field name="mStartHour">0</field>
|
||||
<field name="mEndHour">24</field>
|
||||
<field name="mStartHour">8</field>
|
||||
<field name="mEndHour">19</field>
|
||||
|
||||
<constructor>
|
||||
<![CDATA[
|
||||
@ -240,8 +240,8 @@
|
||||
<field name="mEndDate">null</field>
|
||||
<field name="mDayOffset">0</field>
|
||||
<field name="mScrollOffset">0</field>
|
||||
<field name="mStartHour">0</field>
|
||||
<field name="mEndHour">24</field>
|
||||
<field name="mStartHour">8</field>
|
||||
<field name="mEndHour">19</field>
|
||||
|
||||
<property name="contentWidth">
|
||||
<getter>
|
||||
@ -480,8 +480,8 @@
|
||||
<field name="mStartDate">null</field>
|
||||
<field name="mEndDate">null</field>
|
||||
<field name="mRange">0</field>
|
||||
<field name="mStartHour">0</field>
|
||||
<field name="mEndHour">24</field>
|
||||
<field name="mStartHour">8</field>
|
||||
<field name="mEndHour">19</field>
|
||||
|
||||
<property name="startDate">
|
||||
<setter>
|
||||
@ -888,8 +888,8 @@
|
||||
<field name="mEndDate">null</field>
|
||||
<field name="mScrollOffset">0</field>
|
||||
<field name="mRange">0</field>
|
||||
<field name="mStartHour">0</field>
|
||||
<field name="mEndHour">24</field>
|
||||
<field name="mStartHour">8</field>
|
||||
<field name="mEndHour">19</field>
|
||||
|
||||
<field name="mFreeBusyListener">
|
||||
<![CDATA[
|
||||
|
@ -497,8 +497,6 @@
|
||||
// update alarm checkbox/label/settings button
|
||||
this.updateAlarm();
|
||||
|
||||
this.updateURL(item.getProperty("URL"));
|
||||
|
||||
// hide rows based on if this is an event or todo
|
||||
this.updateStyle();
|
||||
|
||||
@ -511,6 +509,8 @@
|
||||
|
||||
this.onChangeCalendar();
|
||||
|
||||
this.updateURL(item.getProperty("URL"));
|
||||
|
||||
document.getElementById("item-title").focus();
|
||||
]]>
|
||||
</body>
|
||||
@ -904,6 +904,10 @@
|
||||
var button = document.getElementById("load-url-button");
|
||||
button.setAttribute("disabled", true)
|
||||
|
||||
if (this.mIsReadOnly) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!aValue) {
|
||||
return;
|
||||
}
|
||||
@ -1023,9 +1027,9 @@
|
||||
|
||||
var kDefaultTimezone = calendarDefaultTimezone();
|
||||
|
||||
var title = getElementValue("item-title");
|
||||
if (title.length == 0)
|
||||
enableAccept = false;
|
||||
//var title = getElementValue("item-title");
|
||||
//if (title.length == 0)
|
||||
//enableAccept = false;
|
||||
|
||||
// don't allow for end dates to be before start dates
|
||||
var startDate;
|
||||
|
Loading…
Reference in New Issue
Block a user