Skip to content

Commit 43b06ee

Browse files
author
Jelte Lagendijk
committed
Fix #58 - Start View not working
1 parent 932fb5c commit 43b06ee

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "calendar",
3-
"version": "5.3.1",
3+
"version": "5.3.2",
44
"description": "This is a calendar widget for Mendix. It shows a Calendar and can render objects as events in it.",
55
"license": "Apache License, Version 2.0, January 2004",
66
"author": "Mendix 2016",

src/calendar/widget/calendar.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,10 +861,11 @@ define([
861861
},
862862

863863
_determineDefaultView: function(userDefinedDefaultView, availableViews){
864-
var exists = dojo.indexOf(availableViews, userDefinedDefaultView);
864+
var available = Object.keys(availableViews);
865+
var exists = dojo.indexOf(available, userDefinedDefaultView);
865866
var defaultView = userDefinedDefaultView;
866867
if (exists < 0) {
867-
defaultView = Object.keys(availableViews)[0];
868+
defaultView = available[0];
868869
}
869870

870871
return defaultView;

src/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<package xmlns="http://www.mendix.com/package/1.0/">
3-
<clientModule name="Calendar" version="5.3.1" xmlns="http://www.mendix.com/clientModule/1.0/">
3+
<clientModule name="Calendar" version="5.3.2" xmlns="http://www.mendix.com/clientModule/1.0/">
44
<widgetFiles>
55
<widgetFile path="calendar/calendar.xml"/>
66
<widgetFile path="calendar/calendar-scheduler.xml"/>

test/widgets/calendar.mpk

9 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)