Browse Source

#701 Portal customization : enabled the calendar widget for input of a date+time type of attribute (it was only available for pure DATE attributes)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2704 a333f486-631f-4898-b8df-5754b55c2be0
romainq 12 years ago
parent
commit
8d959d0f03
1 changed files with 11 additions and 0 deletions
  1. 11 0
      application/portalwebpage.class.inc.php

+ 11 - 0
application/portalwebpage.class.inc.php

@@ -138,6 +138,17 @@ try
 			changeMonth: true,
 			changeMonth: true,
 			changeYear: true
 			changeYear: true
 		});
 		});
+
+	$(".datetime-pick").datepicker({
+		showOn: 'button',
+		buttonImage: '../images/calendar.png',
+		buttonImageOnly: true,
+		dateFormat: 'yy-mm-dd 00:00:00',
+		constrainInput: false,
+		changeMonth: true,
+		changeYear: true
+		});
+
 	//$('.resizable').resizable(); // Make resizable everything that claims to be resizable !
 	//$('.resizable').resizable(); // Make resizable everything that claims to be resizable !
 	$('.caselog_header').click( function () { $(this).toggleClass('open').next('.caselog_entry').toggle(); });
 	$('.caselog_header').click( function () { $(this).toggleClass('open').next('.caselog_entry').toggle(); });
 }
 }