Post by Pamella » Sat Jun 12, 2021 12:21 am

This is not a bug ;) but it seem moment.js is called twice, isn't ?

For example, in the following file: admin/view/template/common/header.twig

Code: Select all

<script src="view/javascript/jquery/datetimepicker/moment/moment.min.js" type="text/javascript"></script>
<script src="view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.js" type="text/javascript"></script>
It should be

Code: Select all

<script src="view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.js" type="text/javascript"></script>
or...

Code: Select all

<script src="view/javascript/jquery/datetimepicker/moment/moment.min.js" type="text/javascript"></script>
<script src="view/javascript/jquery/datetimepicker/moment/locales.min.js" type="text/javascript"></script>
PS: Related to DateTimePicker
Last edited by Pamella on Tue Jun 15, 2021 4:20 am, edited 1 time in total.

OC 3.0.3.7 EN (default theme) running on PHP 7.3 MariaDB 10.3 Linux / Apache 2.4


New member

Posts

Joined
Tue Oct 25, 2011 4:22 am

Post by straightlight » Sat Jun 12, 2021 2:13 am

It's not twice. Both, master branch and maintenance branch, have these two JS lines on the same file.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Pamella » Tue Jun 15, 2021 4:19 am

Well, thank you to @straightlight

OC 3.0.3.7 EN (default theme) running on PHP 7.3 MariaDB 10.3 Linux / Apache 2.4


New member

Posts

Joined
Tue Oct 25, 2011 4:22 am
Who is online

Users browsing this forum: No registered users and 88 guests