Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/feature/stabilization'
Browse files Browse the repository at this point in the history
  • Loading branch information
phuong_vu committed Mar 24, 2014
2 parents a9dff69 + 0315e9a commit 1e510e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ EventManager.prototype.getEventTargetByClass = function(evt, className){

EventManager.prototype.getEventTargetByTagName = function(evt, tagName){
var target = this.getEventTarget(evt);
if (target.tagName.toLowerCase() == tagName.trim())
if (target.tagName.toLowerCase() == gj.trim(tagName))
return target ;
else
return gj(target).parents(tagName)[0] ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ public void refresh() throws Exception {
UICalendarViewContainer viewContainer = calendarPortlet.findFirstComponentOfType(UICalendarViewContainer.class);

String viewType = viewContainer.getCurrentViewType();
if (UICalendarViewContainer.DAY_VIEW.equals(viewType) || UICalendarViewContainer.WORKING_VIEW.equals(viewType)) {
if (UICalendarViewContainer.DAY_VIEW.equals(viewType)) {
UIDayView dayView = viewContainer.getChild(UIDayView.class);
if (dayView == null) dayView = viewContainer.addChild(UIDayView.class, null, null) ;
dayView.setEmptyEventCalendars(emptyEventCalendars);
dayView.setEmptyRecurrentEventCalendars(emptyRecurrentEventCalendars);
} else if (UICalendarViewContainer.WEEK_VIEW.equals(viewType)) {
} else if (UICalendarViewContainer.WEEK_VIEW.equals(viewType) || UICalendarViewContainer.WORKING_VIEW.equals(viewType)) {
UIWeekView weekView = viewContainer.getChild(UIWeekView.class);
if (weekView == null) weekView = viewContainer.addChild(UIWeekView.class, null, null);
weekView.setEmptyEventCalendars(emptyEventCalendars);
Expand Down

0 comments on commit 1e510e5

Please sign in to comment.