Revision: 4578
Author:   seba.wagner
Date:     Wed Nov 16 07:05:36 2011
Log:      Fixes issue 1573
http://code.google.com/p/openmeetings/source/detail?r=4578

Modified:
/trunk/singlewebapp/WebContent/openmeetings/modules/calendar/monthview/monthView.lzx

=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/calendar/monthview/monthView.lzx Fri Nov 13 06:57:43 2009 +++ /trunk/singlewebapp/WebContent/openmeetings/modules/calendar/monthview/monthView.lzx Wed Nov 16 07:05:36 2011
@@ -111,23 +111,34 @@
        </view>

    <handler name="oninit">
-
-
-          this.dayNamesLabelIds = [459,453,454,455,456,457,458];
-          this.dayLabelNamesLabelIds = [466,460,461,462,463,464,465];
-          this.monthnames = [canvas.getLabelName(469),canvas.getLabelName(470),
-                                                       
canvas.getLabelName(471),canvas.getLabelName(472),
-                                                       
canvas.getLabelName(473),canvas.getLabelName(474),
-                                                       
canvas.getLabelName(475),canvas.getLabelName(476),
-                                                       
canvas.getLabelName(477),canvas.getLabelName(478),
-                                                       
canvas.getLabelName(479),canvas.getLabelName(480)]
-
-          if ($debug) Debug.write("this month: ",this);
- if ($debug) Debug.write("this month _startDate: ",parent.parent.parent._startDate);
-          this.showingdate = parent.parent.parent._startDate;
-
-          this.init();
-
+          <![CDATA[
+
+                  this.dayNamesLabelIds = [453,454,455,456,457,458,459];
+
+                  switch (canvas.firstdayinweek) {
+                         case 0:
+                               this.dayLabelNamesLabelIds = 
[453,454,455,456,457,458,459];
+                               break;
+                         case 1:
+                               this.dayLabelNamesLabelIds = 
[466,460,461,462,463,464,465];
+                               break;
+
+                  }
+
+
+                  this.monthnames = 
[canvas.getLabelName(469),canvas.getLabelName(470),
+                                                               
canvas.getLabelName(471),canvas.getLabelName(472),
+                                                               
canvas.getLabelName(473),canvas.getLabelName(474),
+                                                               
canvas.getLabelName(475),canvas.getLabelName(476),
+                                                               
canvas.getLabelName(477),canvas.getLabelName(478),
+                                                               
canvas.getLabelName(479),canvas.getLabelName(480)]
+
+                  if ($debug) Debug.write("this month: ",this);
+ if ($debug) Debug.write("this month _startDate: ",parent.parent.parent._startDate);
+                  this.showingdate = parent.parent.parent._startDate;
+
+                  this.init();
+          ]]>
    </handler>

    <method name="init">

--
You received this message because you are subscribed to the Google Groups 
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/openmeetings-dev?hl=en.

Reply via email to