fixes js error when removing last group_by

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1794 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
j.wollert 14 years ago
parent add27110e2
commit ea775f77c4
  1. 5
      assets/javascripts/reporting.js

@ -266,13 +266,12 @@ function add_group_by(select) {
function remove_group_by(arrow) {
group_by = arrow.up();
prev = group_by.previous();
enable_select_option($('group_by_columns'), group_by.getAttribute('value'));
enable_select_option($('group_by_rows'), group_by.getAttribute('value'));
group_by.remove();
if (prev !== null) {
if (!first_in_row(group_by)) {
update_arrow(prev);
}
group_by.remove();
}
function init_arrow(group_by) {

Loading…
Cancel
Save