1
0
mirror of https://github.com/stisla/stisla.git synced 2025-08-30 11:30:07 +02:00

fixing datetimepicker on forms-advanced-form.html

This commit is contained in:
masif088
2021-01-26 01:32:04 +07:00
parent 9aaf4ec3dd
commit a499054003

View File

@@ -94,23 +94,23 @@ $(function() {
if(me.parent().hasClass("active")){
active = true;
}
$('.main-sidebar .sidebar-menu li.active > .dropdown-menu').slideUp(500, function() {
update_sidebar_nicescroll();
update_sidebar_nicescroll();
return false;
});
$('.main-sidebar .sidebar-menu li.active').removeClass('active');
if(active==true) {
me.parent().removeClass('active');
me.parent().find('> .dropdown-menu').slideUp(500, function() {
me.parent().removeClass('active');
me.parent().find('> .dropdown-menu').slideUp(500, function() {
update_sidebar_nicescroll();
return false;
});
}else{
me.parent().addClass('active');
me.parent().find('> .dropdown-menu').slideDown(500, function() {
me.parent().addClass('active');
me.parent().find('> .dropdown-menu').slideDown(500, function() {
update_sidebar_nicescroll();
return false;
});
@@ -120,7 +120,7 @@ $(function() {
});
$('.main-sidebar .sidebar-menu li.active > .dropdown-menu').slideDown(500, function() {
update_sidebar_nicescroll();
update_sidebar_nicescroll();
return false;
});
}
@@ -589,7 +589,7 @@ $(function() {
}
if($(".datetimepicker").length) {
$('.datetimepicker').daterangepicker({
locale: {format: 'YYYY-MM-DD hh:mm'},
locale: {format: 'YYYY-MM-DD HH:mm'},
singleDatePicker: true,
timePicker: true,
timePicker24Hour: true,