-
Notifications
You must be signed in to change notification settings - Fork 135
Fix for the bug: [OPEN-342] Bug with single-click - reproducible in 1.5.1 #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 3 commits
3592cbb
7f76d49
56755f8
7c31200
6768897
4937f26
d6c0852
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,14 +15,16 @@ Ext.define('Extensible.calendar.view.AbstractCalendar', { | |
|
|
||
| requires: [ | ||
| 'Ext.CompositeElement', | ||
| 'Ext.EventObject', | ||
| 'Extensible.calendar.form.EventDetails', | ||
| 'Extensible.calendar.form.EventWindow', | ||
| 'Extensible.calendar.menu.Event', | ||
| 'Extensible.calendar.dd.DragZone', | ||
| 'Extensible.calendar.dd.DropZone', | ||
| 'Extensible.form.recurrence.RangeEditWindow' | ||
| ], | ||
|
|
||
|
|
||
|
|
||
| /** | ||
| * @cfg {Ext.data.Store} eventStore | ||
| * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Extensible.calendar.data.EventModel EventRecords}. | ||
|
|
@@ -570,6 +572,8 @@ viewConfig: { | |
|
|
||
| this.on('resize', this.onResize, this); | ||
|
|
||
| Ext.getBody().on('keyup', this.onKeyUp, this); | ||
|
|
||
| this.el.on({ | ||
| 'mouseover': this.onMouseOver, | ||
| 'mouseout': this.onMouseOut, | ||
|
|
@@ -1878,7 +1882,8 @@ Ext.override(Extensible.calendar.view.AbstractCalendar, { | |
| } | ||
|
|
||
| me.eventMenu.showForEvent(me.getEventRecordFromEl(el), el, xy); | ||
| me.menuActive = true; | ||
| me.menuActive = true; | ||
|
|
||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same thing, this line is just whitespace |
||
| }, | ||
|
|
||
| // private | ||
|
|
@@ -2076,7 +2081,8 @@ Ext.override(Extensible.calendar.view.AbstractCalendar, { | |
| // ignore the first click if a context menu is active (let it close) | ||
| me.menuActive = false; | ||
| return true; | ||
| } | ||
| } | ||
|
|
||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same thing |
||
| if (el) { | ||
| var id = me.getEventIdFromEl(el), | ||
| rec = me.getEventRecord(id); | ||
|
|
@@ -2108,6 +2114,13 @@ Ext.override(Extensible.calendar.view.AbstractCalendar, { | |
| } | ||
| }, | ||
|
|
||
| // private | ||
| onKeyUp: function(e, t) { | ||
| if (e.getCharCode( ) === Ext.EventObject.ESC) { | ||
| this.menuActive = false; | ||
| } | ||
| }, | ||
|
|
||
| // private | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks good, but please stick to 4-char indentation for consistency with the existing code. |
||
| handleEventMouseEvent: function(e, t, type) { | ||
| var el = e.getTarget(this.eventSelector, this.eventSelectorDepth, true); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please discard whitespace-only changes prior to committing