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

Merge pull request #190 from masif088/fixing_datetime

fixing datetimepicker on forms-advanced-form.html
This commit is contained in:
Nauval
2021-05-07 05:46:18 +07:00
committed by GitHub

View File

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