0.0.317 locale for datarangepicker.js
This commit is contained in:
@@ -766,7 +766,7 @@ span.btn_profile_name {
|
|||||||
|
|
||||||
.header-second>div>img{
|
.header-second>div>img{
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
margin-left: 10px;
|
margin-left: 40px;
|
||||||
}
|
}
|
||||||
#customer_service{
|
#customer_service{
|
||||||
margin-right: 35px;
|
margin-right: 35px;
|
||||||
|
|||||||
@@ -4,6 +4,38 @@
|
|||||||
*
|
*
|
||||||
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
* 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) {
|
!function(t,e) {
|
||||||
|
|
||||||
if ("function" == typeof define && define.amd) define(["moment", "jquery"], function (t, a) {
|
if ("function" == typeof define && define.amd) define(["moment", "jquery"], function (t, a) {
|
||||||
@@ -52,9 +84,9 @@
|
|||||||
// format: t.localeData().longDateFormat("L"),
|
// format: t.localeData().longDateFormat("L"),
|
||||||
format: "DD.MM.YYYY",
|
format: "DD.MM.YYYY",
|
||||||
separator: " - ",
|
separator: " - ",
|
||||||
applyLabel: "Apply",
|
applyLabel: "Принять",
|
||||||
cancelLabel: "Cancel",
|
cancelLabel: "Отменить",
|
||||||
weekLabel: "W",
|
weekLabel: "Н",
|
||||||
customRangeLabel: "Custom Range",
|
customRangeLabel: "Custom Range",
|
||||||
daysOfWeek: t.weekdaysMin(),
|
daysOfWeek: t.weekdaysMin(),
|
||||||
monthNames: t.monthsShort(),
|
monthNames: t.monthsShort(),
|
||||||
|
|||||||
18239
static/js/moment-with-locales.js
Normal file
18239
static/js/moment-with-locales.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -58,6 +58,7 @@ function init_arrival_DT (date=null,single=true,hour=true){
|
|||||||
}
|
}
|
||||||
let place_1 = document.querySelector("#id_arrival_DT")
|
let place_1 = document.querySelector("#id_arrival_DT")
|
||||||
if (place_1) {
|
if (place_1) {
|
||||||
|
moment.locale('ru');
|
||||||
$(place_1).daterangepicker({
|
$(place_1).daterangepicker({
|
||||||
"autoapply": true,
|
"autoapply": true,
|
||||||
"linkedCalendars": false,
|
"linkedCalendars": false,
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
{# <script src='{% static "js/jquery_v3_6_4.js" %}'> </script>#}
|
{# <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/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_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 type="text/javascript" src="{% static "js/datarangepicker.js" %}"></script>
|
||||||
<script src="{% static "js/rangecalendartech.js" %}"></script>
|
<script src="{% static "js/rangecalendartech.js" %}"></script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user