This is an automated email from the ASF dual-hosted git repository.
solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git
The following commit(s) were added to refs/heads/master by this push:
new bbea9fdba [OPENMEETINGS-2784] RTL should be improved
bbea9fdba is described below
commit bbea9fdba5dc942d8d08ffe125eb76262dd98bdc
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Fri Jul 5 18:09:04 2024 +0700
[OPENMEETINGS-2784] RTL should be improved
---
.../apache/openmeetings/web/user/calendar/CalendarPanel.java | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/calendar/CalendarPanel.java
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/calendar/CalendarPanel.java
index 1ae2e5c5b..78e07ba59 100644
---
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/calendar/CalendarPanel.java
+++
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/calendar/CalendarPanel.java
@@ -133,7 +133,7 @@ public class CalendarPanel extends UserBasePanel {
.set("height", Options.asString("100%"))
.set("customButtons", "{gotoBtn: {text: ' ',
click: onOmGotoClick}}")
.set("headerToolbar", isRtl
- ? "{left:
'timeGridDay,timeGridWeek,dayGridMonth', center: 'title', right: 'gotoBtn,today
nextYear,next,prev,prevYear'}"
+ ? "{right:
'prevYear,prev,next,nextYear today,gotoBtn', center: 'title', left:
'dayGridMonth,timeGridWeek,timeGridDay'}"
: "{left:
'prevYear,prev,next,nextYear today,gotoBtn', center: 'title', right:
'dayGridMonth,timeGridWeek,timeGridDay'}")
.set("allDaySlot", false)
.set("nowIndicator", true)
@@ -143,10 +143,10 @@ public class CalendarPanel extends UserBasePanel {
.set("themeSystem",
Options.asString("bootstrap5"))
.set("buttonIcons", new JSONObject()
.put("close", "bi fa-solid
fa-times")
- .put("prev", "bi fa-solid
fa-chevron-left")
- .put("next", "bi fa-solid
fa-chevron-right")
- .put("prevYear", "bi fa-solid
fa-angles-left")
- .put("nextYear", "bi fa-solid
fa-angles-right")
+ .put("prev", isRtl ? "bi
fa-solid fa-chevron-right" : "bi fa-solid fa-chevron-left")
+ .put("next", isRtl ? "bi
fa-solid fa-chevron-left" : "bi fa-solid fa-chevron-right")
+ .put("prevYear", isRtl ? "bi
fa-solid fa-angles-right" : "bi fa-solid fa-angles-left")
+ .put("nextYear", isRtl ? "bi
fa-solid fa-angles-left" : "bi fa-solid fa-angles-right")
.toString())
.set("buttonText", new JSONObject()
.put("month", getString("801"))
@@ -363,6 +363,7 @@ public class CalendarPanel extends UserBasePanel {
response.render(JavaScriptHeaderItem.forReference(CALJS));
response.render(JavaScriptHeaderItem.forReference(TouchPunchResourceReference.instance()));
response.render(JavaScriptHeaderItem.forReference(BS5_THEME));
+
response.render(JavaScriptHeaderItem.forScript("FullCalendar.Bootstrap5.Internal.BootstrapTheme.prototype.rtlIconClasses
= null", "fullcalendar-bootstrap-reset-rtl"));
}
// Client creation here, because the client is not created until
necessary