|
|
@ -12,7 +12,7 @@ Reporting.GroupBys = { |
|
|
|
axis = "rows"; |
|
|
|
axis = "rows"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var selected_container = btn.form.select("#group_by_" + axis)[0]; |
|
|
|
var selected_container = $(btn.form).select("#group_by_" + axis)[0]; |
|
|
|
var group_by_container = btn.form.group_by_container; |
|
|
|
var group_by_container = btn.form.group_by_container; |
|
|
|
|
|
|
|
|
|
|
|
var source_container, target_container; |
|
|
|
var source_container, target_container; |
|
|
@ -31,7 +31,7 @@ Reporting.GroupBys = { |
|
|
|
|
|
|
|
|
|
|
|
attach_sort_button: function (direction, axis) { |
|
|
|
attach_sort_button: function (direction, axis) { |
|
|
|
var btn = $$(".buttons.group_by.sort.sort" + direction + ".sort-" + axis)[0]; |
|
|
|
var btn = $$(".buttons.group_by.sort.sort" + direction + ".sort-" + axis)[0]; |
|
|
|
var box = btn.form.select("#group_by_" + axis)[0]; |
|
|
|
var box = $(btn.form).select("#group_by_" + axis)[0]; |
|
|
|
btn.observe("click", function () { |
|
|
|
btn.observe("click", function () { |
|
|
|
if (direction === "Up") { |
|
|
|
if (direction === "Up") { |
|
|
|
moveOptionUp(box); |
|
|
|
moveOptionUp(box); |
|
|
|