Author: ralfbecker
New Revision: 54974
URL: http://svn.stylite.de/viewvc/egroupware?rev=54974&view=rev
Log:
inline calendar is not existing in html5, so allways use datepicker instead
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 17:39:43 2016
@@ -99,9 +99,6 @@
this.date.setMinutes(0);
this.date.setSeconds(0);
this.input = null;
-
this.is_mobile = egwIsMobile();
-
this.dateFormat = this.is_mobile ? 'yy-mm-dd' : this.egw().dateTimeFormat(this.egw().preference("dateformat"));
-
this.timeFormat = this.is_mobile ? 'HH:mm' : this.egw().preference("timeformat") == 12 ? "h:mmtt" : "HH:mm";
this.createInputWidget();
},
@@ -118,8 +115,13 @@
this.setDOMNode(this.span[0]);
-
// inline calendar is not existing in html5, so allways use datepicker instead
-
this.is_mobile = egwIsMobile() && !this.options.inline;
-
if (this.is_mobile)
{
-
this.dateFormat = 'yy-mm-dd';
-
this.timeFormat = 'HH:mm';
switch(this._type)
{
case 'date':
@@ -136,6 +138,8 @@
}
else
{
-
this.dateFormat = this.egw().dateTimeFormat(this.egw().preference("dateformat"));
-
this.timeFormat = this.egw().preference("timeformat") == 12 ? "h:mmtt" : "HH:mm";
// jQuery-UI date picker
if(this._type != 'date-timeonly')
{
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