Compare commits

..
4 Commits
8 changed files with 6 additions and 34 deletions

No files matched your search

@@ -524,11 +524,6 @@
enableTime: false, enableTime: false,
dateFormat: 'd-m-Y', dateFormat: 'd-m-Y',
defaultDate: null, // Do not preselect any date defaultDate: null, // Do not preselect any date
onReady: function(selectedDates, dateStr, instance) {
// Highlight today's date with a custom CSS class
const today = instance.todayDateElem;
today.classList.add('flatpickr-today-highlight'); // Add a custom class to today
}
}); });
$(document).on('click', '#btn_submit', function(e) { $(document).on('click', '#btn_submit', function(e) {
@@ -297,11 +297,6 @@
enableTime: false, enableTime: false,
dateFormat: 'd-m-Y', dateFormat: 'd-m-Y',
defaultDate: null, // Do not preselect any date defaultDate: null, // Do not preselect any date
onReady: function(selectedDates, dateStr, instance) {
// Highlight today's date with a custom CSS class
const today = instance.todayDateElem;
today.classList.add('flatpickr-today-highlight'); // Add a custom class to today
}
}); });
}); });
@@ -537,11 +537,6 @@
enableTime: false, enableTime: false,
dateFormat: 'd-m-Y', dateFormat: 'd-m-Y',
defaultDate: null, // Do not preselect any date defaultDate: null, // Do not preselect any date
onReady: function(selectedDates, dateStr, instance) {
// Highlight today's date with a custom CSS class
const today = instance.todayDateElem;
today.classList.add('flatpickr-today-highlight'); // Add a custom class to today
}
}); });
$(document).on('click', '#btn_submit', function(e) { $(document).on('click', '#btn_submit', function(e) {
@@ -308,11 +308,6 @@
enableTime: false, enableTime: false,
dateFormat: 'd-m-Y', dateFormat: 'd-m-Y',
defaultDate: null, // Do not preselect any date defaultDate: null, // Do not preselect any date
onReady: function(selectedDates, dateStr, instance) {
// Highlight today's date with a custom CSS class
const today = instance.todayDateElem;
today.classList.add('flatpickr-today-highlight'); // Add a custom class to today
}
}); });
}); });
@@ -525,10 +525,6 @@
<script src="{{ url('assets/js/custom/utilities/modals/create-app.js') }}"></script> <script src="{{ url('assets/js/custom/utilities/modals/create-app.js') }}"></script>
<script src="{{ url('assets/js/custom/utilities/modals/new-target.js') }}"></script> <script src="{{ url('assets/js/custom/utilities/modals/new-target.js') }}"></script>
<script src="{{ url('assets/js/custom/utilities/modals/users-search.js') }}"></script> <script src="{{ url('assets/js/custom/utilities/modals/users-search.js') }}"></script>
<script src="{{ url('assets/js/custom/apps/ecommerce/catalog/save-category.js') }}"></script>
<script src="{{ url('assets/js/custom/utilities/modals/upgrade-plan.js') }}"></script>
<script src="{{ url('assets/js/custom/utilities/modals/create-app.js') }}"></script>
<script src="{{ url('assets/js/custom/utilities/modals/users-search.js') }}"></script>
<!--end::Custom Javascript--> <!--end::Custom Javascript-->
<script src="{{ url('assets/js/utils.js') }}"></script> <script src="{{ url('assets/js/utils.js') }}"></script>
@@ -86,10 +86,6 @@
<script src="{{ url('assets/plugins/global/plugins.bundle.js') }}"></script> <script src="{{ url('assets/plugins/global/plugins.bundle.js') }}"></script>
<script src="{{ url('assets/js/scripts.bundle.js') }}"></script> <script src="{{ url('assets/js/scripts.bundle.js') }}"></script>
<!--end::Global Javascript Bundle--> <!--end::Global Javascript Bundle-->
<!--begin::Custom Javascript(used for this page only)-->
<script src="{{ url('assets/js/custom/authentication/sign-in/general.js') }}"></script>
<script src="{{ url('assets/js/custom/authentication/sign-in/i18n.js') }}"></script>
<!--end::Custom Javascript-->
<!--end::Javascript--> <!--end::Javascript-->
@@ -111,10 +111,6 @@
<script src="{{ url('assets/plugins/global/plugins.bundle.js') }}"></script> <script src="{{ url('assets/plugins/global/plugins.bundle.js') }}"></script>
<script src="{{ url('assets/js/scripts.bundle.js') }}"></script> <script src="{{ url('assets/js/scripts.bundle.js') }}"></script>
<!--end::Global Javascript Bundle--> <!--end::Global Javascript Bundle-->
<!--begin::Custom Javascript(used for this page only)-->
<script src="{{ url('assets/js/custom/authentication/sign-in/general.js') }}"></script>
<script src="{{ url('assets/js/custom/authentication/sign-in/i18n.js') }}"></script>
<!--end::Custom Javascript-->
<!--end::Javascript--> <!--end::Javascript-->
+6 -2
View File
@@ -43,9 +43,13 @@
scrollPos = scrollPos + 60; scrollPos = scrollPos + 60;
menu_links.each(function () { menu_links.each(function () {
var currLink = $(this); var currLink = $(this);
var hasPos = currLink.attr("href").indexOf("#"); var href = currLink.attr("href");
if (!href) {
return;
}
var hasPos = href.indexOf("#");
if (hasPos > -1) { if (hasPos > -1) {
var res = currLink.attr("href").substring(hasPos); var res = href.substring(hasPos);
if (res != '' && res != '#' && $(res).length > 0) { if (res != '' && res != '#' && $(res).length > 0) {
var refElement = $(res); var refElement = $(res);
if (refElement.offset().top <= scrollPos && refElement.offset().top + refElement.height() > scrollPos) { if (refElement.offset().top <= scrollPos && refElement.offset().top + refElement.height() > scrollPos) {