From b1dbe2ab38deceddcf162403e889f6910be65901 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 10 Mar 2015 21:11:36 +0000 Subject: [PATCH] Apply duration settings to gantt columns --- etemplate/js/et2_widget_gantt.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_gantt.js b/etemplate/js/et2_widget_gantt.js index fbd22ed601..1f7360cba6 100644 --- a/etemplate/js/et2_widget_gantt.js +++ b/etemplate/js/et2_widget_gantt.js @@ -299,7 +299,8 @@ var et2_gantt = et2_inputWidget.extend([et2_IResizeable,et2_IInput], } if(this.widget && typeof this.widget == 'string') { - this.widget = et2_createWidget(this.widget, {readonly:true}, gantt_widget); + var attrs = jQuery.extend({readonly:true}, this.widget_attributes||{}); + this.widget = et2_createWidget(this.widget, attrs, gantt_widget); } if (this.widget) {