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:
Hadi Nategh 2018-05-07 16:57:37 +02:00
parent 2e078df6d4
commit c8f98f3fee

View File

@ -722,7 +722,7 @@ var et2_date_duration = (function(){ "use strict"; return et2_date.extend(
.addClass('et2_date_duration');
this.duration = jQuery(document.createElement("input"))
.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);
if(this.options.display_format.length > 1)