[Rt-commit] rt branch, no-prototype, updated. rt-3.8.8-199-gdb93763
? sunnavy
sunnavy at bestpractical.com
Fri Aug 6 08:12:17 EDT 2010
The branch, no-prototype has been updated
via db9376364bfc743ff498aac5d815bcb387ba091c (commit)
from 8c64a27fe17313bd5902ddc789677f0e445ed625 (commit)
Summary of changes:
share/html/Elements/HeaderJavascript | 7 ++++++-
share/html/Elements/SelectDate | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit db9376364bfc743ff498aac5d815bcb387ba091c
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Aug 6 20:11:57 2010 +0800
add extra withtime class to decide if we call timepickr or not
diff --git a/share/html/Elements/HeaderJavascript b/share/html/Elements/HeaderJavascript
index 64770e5..84b0fae 100644
--- a/share/html/Elements/HeaderJavascript
+++ b/share/html/Elements/HeaderJavascript
@@ -60,7 +60,12 @@ $onload => undef
<script type="text/javascript">
jQuery(function() {
- jQuery(".ui-datepicker").datepicker( {
+ jQuery(".ui-datepicker:not(.withtime)").datepicker( {
+ dateFormat: 'yy-mm-dd',
+ constrainInput: false,
+ } );
+
+ jQuery(".ui-datepicker.withtime").datepicker( {
dateFormat: 'yy-mm-dd',
constrainInput: false,
onSelect: function( dateText, inst ) {
diff --git a/share/html/Elements/SelectDate b/share/html/Elements/SelectDate
index a054f8e..c37c23f 100755
--- a/share/html/Elements/SelectDate
+++ b/share/html/Elements/SelectDate
@@ -45,7 +45,7 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<input type="text" class="ui-datepicker" id="<% $Name %>" name="<% $Name %>" value="<% $Value %>" size="<% $Size %>" />
+<input type="text" class="ui-datepicker<% $ShowTime ? ' withtime' : '' %>" id="<% $Name %>" name="<% $Name %>" value="<% $Value %>" size="<% $Size %>" />
<%init>
unless ((defined $Default) or
($current <= 0)) {
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list