0.0.317 locale for datarangepicker.js

This commit is contained in:
2023-12-05 18:52:52 +03:00
parent 87e90d7152
commit 28a36335ce
5 changed files with 18277 additions and 4 deletions

View File

@@ -766,7 +766,7 @@ span.btn_profile_name {
.header-second>div>img{
margin-right: 5px;
margin-left: 10px;
margin-left: 40px;
}
#customer_service{
margin-right: 35px;

View File

@@ -4,6 +4,38 @@
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
// let locale_ru = {
// direction: "ltr",
// // format: t.localeData().longDateFormat("L"),
// format: "DD.MM.YYYY",
// separator: " - ",
// applyLabel: "Принять",
// cancelLabel: "Отменить",
// weekLabel: "Н",
// customRangeLabel: "Custom Range",
// daysOfWeek: t.weekdaysMin(),
// monthNames: t.monthsShort(),
// firstDay: t.localeData().firstDayOfWeek()
// };
// let locale_en = {
// direction: "ltr",
// // format: t.localeData().longDateFormat("L"),
// format: "DD.MM.YYYY",
// separator: " - ",
// applyLabel: "Apply",
// cancelLabel: "Cancel",
// weekLabel: "W",
// customRangeLabel: "Custom Range",
// daysOfWeek: t.weekdaysMin(),
// monthNames: t.monthsShort(),
// firstDay: t.localeData().firstDayOfWeek()
// };
!function(t,e) {
if ("function" == typeof define && define.amd) define(["moment", "jquery"], function (t, a) {
@@ -52,9 +84,9 @@
// format: t.localeData().longDateFormat("L"),
format: "DD.MM.YYYY",
separator: " - ",
applyLabel: "Apply",
cancelLabel: "Cancel",
weekLabel: "W",
applyLabel: "Принять",
cancelLabel: "Отменить",
weekLabel: "Н",
customRangeLabel: "Custom Range",
daysOfWeek: t.weekdaysMin(),
monthNames: t.monthsShort(),

File diff suppressed because it is too large Load Diff

View File

@@ -58,6 +58,7 @@ function init_arrival_DT (date=null,single=true,hour=true){
}
let place_1 = document.querySelector("#id_arrival_DT")
if (place_1) {
moment.locale('ru');
$(place_1).daterangepicker({
"autoapply": true,
"linkedCalendars": false,

View File

@@ -12,6 +12,7 @@
{# <script src='{% static "js/jquery_v3_6_4.js" %}'> </script>#}
<script type="text/javascript" src="{% static "js/jquery_3_2_1.js" %}"></script>
<script type="text/javascript" src="{% static "js/moment_js.js" %}"></script>
<script type="text/javascript" src="{% static "js/moment-with-locales.js" %}"></script>
<script type="text/javascript" src="{% static "js/datarangepicker.js" %}"></script>
<script src="{% static "js/rangecalendartech.js" %}"></script>