diff --git a/etemplate/js/et2_widget_date.js b/etemplate/js/et2_widget_date.js index 79b05bd0f9..95cb8b13bb 100644 --- a/etemplate/js/et2_widget_date.js +++ b/etemplate/js/et2_widget_date.js @@ -308,7 +308,7 @@ var et2_date_duration = et2_date.extend( .addClass('et2_date_duration'); this.duration = $j(document.createElement("input")) .addClass('et2_date_duration') - .attr({type: 'number', size: 3, style: 'width: 3em'}); + .attr({type: 'number', size: 3}); this.node.append(this.duration); if(this.options.display_format.length > 1) diff --git a/etemplate/templates/default/etemplate2.css b/etemplate/templates/default/etemplate2.css index 849749c690..5a8e81a532 100644 --- a/etemplate/templates/default/etemplate2.css +++ b/etemplate/templates/default/etemplate2.css @@ -374,6 +374,9 @@ span.et2_date span { text-align: center; font-size: 9pt; } +span.et2_date_duration input.et2_date_duration{ + width: 3em; +} /** * Dialog widget * It uses jQueryUI, so this is just our little bits - icon on left