From a499054003416d06f84de0573f3aeb7c9a52aee0 Mon Sep 17 00:00:00 2001 From: masif088 Date: Tue, 26 Jan 2021 01:32:04 +0700 Subject: [PATCH] fixing datetimepicker on forms-advanced-form.html --- assets/js/scripts.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/assets/js/scripts.js b/assets/js/scripts.js index 141dabc..4050d7e 100644 --- a/assets/js/scripts.js +++ b/assets/js/scripts.js @@ -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,