Author: ralfbecker
New Revision: 54977
URL: http://svn.stylite.de/viewvc/egroupware?rev=54977&view=rev
Log:
Adding support for set_min/max() arguments supported only by jQuery.Datepicker for HTML5/mobile browsers, thought it seems none of the browsers support them right now …
Modified:
trunk/etemplate/js/et2_widget_date.js
— trunk/etemplate/js/et2_widget_date.js (original)
+++ trunk/etemplate/js/et2_widget_date.js Wed Feb 10 18:42:11 2016
@@ -355,7 +355,7 @@
{
if (this.is_mobile)
{
@@ -363,6 +363,16 @@
}
}
this.options.min = _value;
-
},
-
-
/**
-
- Convert non html5 min or max attributes described above to timestamps
-
*/
-
_relativeDate: function(_value)
-
{
-
if (typeof _value == 'string' && _value.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/)) return _value;
-
-
return jQuery.datepicker._determineDate(jQuery.datepicker, _value, this.date).toJSON();
},
/**
@@ -386,7 +396,7 @@
{
if (this.is_mobile)
{
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs