Skip to content

Commit

Permalink
LPS-44747 - Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
ipeychev authored and juliocamarero committed Mar 13, 2014
1 parent ef58f9f commit 134ea68
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions portlets/calendar-portlet/docroot/scheduler.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,24 @@ String viewCalendarBookingURL = ParamUtil.getString(request, "viewCalendarBookin
);
</c:if>

var views = [];

<c:if test="<%= !hideDayView %>">
views.push(window.<portlet:namespace />dayView);
</c:if>

<c:if test="<%= !hideWeekView %>">
views.push(window.<portlet:namespace />weekView);
</c:if>

<c:if test="<%= !hideMonthView %>">
views.push(window.<portlet:namespace />monthView);
</c:if>

<c:if test="<%= !hideAgendaView %>">
views.push(window.<portlet:namespace />agendaView);
</c:if>

window.<portlet:namespace />scheduler = new Liferay.Scheduler(
{
activeView: window['<portlet:namespace /><%= HtmlUtil.escapeJS(activeView) %>View'],
Expand Down Expand Up @@ -154,23 +172,7 @@ String viewCalendarBookingURL = ParamUtil.getString(request, "viewCalendarBookin
%>

todayDate: new Date(<%= todayYear %>, <%= todayMonth %>, <%= todayDay %>),
views: [
<c:if test="<%= !hideDayView %>">
window.<portlet:namespace />dayView,
</c:if>

<c:if test="<%= !hideWeekView %>">
window.<portlet:namespace />weekView,
</c:if>

<c:if test="<%= !hideMonthView %>">
window.<portlet:namespace />monthView,
</c:if>

<c:if test="<%= !hideAgendaView %>">
window.<portlet:namespace />agendaView
</c:if>
]
views: views
}
);
</aui:script>

0 comments on commit 134ea68

Please sign in to comment.