Fix broken enable/disable function in holiday_report

This commit is contained in:
Hadi Nategh 2016-11-03 11:55:36 +01:00
parent 7f5db92516
commit 521de3a23f

View File

@ -3766,7 +3766,7 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
var widgets = ['[user]','[weekend]','[holidays]','[min_days]'];
var row_id = _widget.name.match(/\d+/);
var w = {};
for (var i=1;i<widgets.length;i++)
for (var i=0;i<widgets.length;i++)
{
w = this.et2.getWidgetById(row_id+widgets[i]);
if (w) w.set_readonly(!_widget.checked);