You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2016/05/11 11:14:56 UTC
svn commit: r1743336 -
/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-calendar.js
Author: lofwyr
Date: Wed May 11 11:14:56 2016
New Revision: 1743336
URL: http://svn.apache.org/viewvc?rev=1743336&view=rev
Log:
TOBAGO-1483: Let tc:date use a Bootstrap component as picker
* fix for old picker: readonly
Modified:
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-calendar.js
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-calendar.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-calendar.js?rev=1743336&r1=1743335&r2=1743336&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-calendar.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-calendar.js Wed May 11 11:14:56 2016
@@ -22,6 +22,13 @@ Tobago.DateTime.init = function (element
// time input fields
// jQuery.datepicker.setDefaults(jQuery.datepicker.regional['de']);
+ // XXX Hack: reset the value, if it will be changed by the picker.
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-date[readonly]")
+ .change(function(event) {
+ var date = jQuery(this);
+ date.val(date.attr("value"));
+ });
+
Tobago.Utils.selectWithJQuery(elements, ".tobago-date")
.not("[disabled]")
.not("[readonly]")