Переглянути джерело

Layout fix activate jquery plugins for date fields

Piotr Labudda 11 роки тому
батько
коміт
9c714a0e07
1 змінених файлів з 12 додано та 10 видалено
  1. 12 10
      SE/se-lib/SE_Layout.php

+ 12 - 10
SE/se-lib/SE_Layout.php

@@ -81,16 +81,18 @@ class SE_Layout {
 	</style>
 	</style>
 	<?php S::printTimeoutUpdateJs(); ?>
 	<?php S::printTimeoutUpdateJs(); ?>
 	<script>
 	<script>
-jQuery('.se_type-date').datepicker({
-	format: "yyyy-mm-dd"
-	, language: 'pl'
-	, todayBtn: "linked"
-});
-jQuery('.se_type-datetime').parent().datetimepicker({
-	language: 'pl'
-	, format: 'yyyy-MM-dd hh:mm'
-	, weekStart: 1
-//	, todayBtn: "linked"
+jQuery(document).ready(function(){
+	jQuery('.se_type-date').datepicker({
+		format: "yyyy-mm-dd"
+		, language: 'pl'
+		, todayBtn: "linked"
+	});
+	jQuery('.se_type-datetime').parent().datetimepicker({
+		language: 'pl'
+		, format: 'yyyy-MM-dd hh:mm'
+		, weekStart: 1
+	//	, todayBtn: "linked"
+	});
 });
 });
 
 
 function showSelected() {
 function showSelected() {