Browse Source

slader fix

amic 3 weeks ago
parent
commit
fcab236011
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules/manager/views/top-slider/modalform.php

+ 2 - 1
modules/manager/views/top-slider/modalform.php

@@ -60,7 +60,7 @@ $model = new TopSlider();
 				'type' => DateTimePicker::TYPE_COMPONENT_PREPEND,
 				'pluginOptions' => [
 					'format' => 'yyyy-MM-dd hh:i:s',
-					'startDate' => '2023-01-01 12:00',
+					'startDate' => '2024-01-01 12:00',
 					'todayHighlight' => true,
 					'autoclose'=>true
 				]
@@ -91,6 +91,7 @@ function senddata(){
 //	console.log(form);
 	$.getJSON( "/manager/top-slider/ajaxsave", form.serialize(), function( json ){
 		console.log(json);
+		$('#modalcsl').modal('hide');
 		if( json.success == 'err' ){
 			alert(json.err);
 		}