Hello,
When I do that: “gantt.getLightboxSection(’’).setValue(’’);” on all browsers even IE, it is working, the value of my select go to nothing, but in firefox that doesn’t work.
I put here an easy example (maybe stupid but it is for the example :p) of the code:
var demo_tasks = {
"data":[
{"id":11, "text":"Project #1", "start_date":"", "duration":"", "progress": 0.6, "open": true},
{"id":12, "text":"Task #1", "start_date":"03-04-2013", "duration":"5", "parent":"11", "progress": 1, "open": true},
],
};
var list = [{key: 0, label:''}, {key: 1, label:'coucou'}, {key: 2, label:'toto'}];
gantt.locale.labels.section_test = "test";
gantt.config.lightbox.sections = [
{name: "description", height: 70, map_to: "text", type: "textarea", focus: true},
{name: "test", height: 30, type: "select", focus: true, options: list, default_value: null, onchange: function () {
gantt.getLightboxSection('test').setValue('');
} },
{name: "time", height: 72, type: "duration", map_to: "auto"},
];
gantt.init("gantt_here");
gantt.parse(demo_tasks);