0001-widgets-adapt-meeting-widget-to-move-by-multiple-day.patch
templates/qommon/forms/widgets/select--meetings.html | ||
---|---|---|
86 | 86 |
go_prev.prependTo($('#form_{{widget.name}}_table')); |
87 | 87 |
go_next.appendTo($('#form_{{widget.name}}_table')); |
88 | 88 |
go_prev.on('click', function() { |
89 |
current_offset = Math.max(0, current_offset-1);
|
|
89 |
current_offset = Math.max(0, current_offset - column_count);
|
|
90 | 90 |
display(current_offset); |
91 | 91 |
return false; |
92 | 92 |
}); |
93 | 93 |
go_next.on('click', function() { |
94 |
current_offset = Math.min(current_offset+1, Math.max(0, nb_days-column_count));
|
|
94 |
current_offset = Math.min(current_offset + column_count, Math.max(0, nb_days-column_count));
|
|
95 | 95 |
display(current_offset); |
96 | 96 |
return false; |
97 | 97 |
}); |
98 |
- |