mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-18 12:30:02 +02:00
Take user's number format into account when set date duration widget. Fixes duration widget doesn't accept "," as decimal separator in Firefox.
This commit is contained in:
@@ -722,7 +722,7 @@ var et2_date_duration = (function(){ "use strict"; return et2_date.extend(
|
|||||||
.addClass('et2_date_duration');
|
.addClass('et2_date_duration');
|
||||||
this.duration = jQuery(document.createElement("input"))
|
this.duration = jQuery(document.createElement("input"))
|
||||||
.addClass('et2_date_duration')
|
.addClass('et2_date_duration')
|
||||||
.attr({type: 'number', size: 3, step:this.options.step});
|
.attr({type: 'number', size: 3, step:this.options.step, lang: this.egw().preference('number_format')[0] === "," ? "en-150": "en-001"});
|
||||||
this.node.append(this.duration);
|
this.node.append(this.duration);
|
||||||
|
|
||||||
if(this.options.display_format.length > 1)
|
if(this.options.display_format.length > 1)
|
||||||
|
Reference in New Issue
Block a user