From bc083c2e08332c99c821381220bc0b6999354109 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 28 Mar 2012 09:25:54 -0400 Subject: [PATCH] Add onSortChange handler pass-thru to AutoGrid Signed-off-by: Bill Erickson --- Open-ILS/web/js/dojo/openils/widget/AutoGrid.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js index d7652769e1..4b8e7483ff 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js @@ -65,6 +65,13 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { } else { var picker = new openils.widget.GridColumnPicker( openils.User.authtoken, this.columnPersistKey, this); + + var _this = this; + picker.onSortChange = function(fields) { + if (_this.onSortChange) + _this.onSortChange(fields) + }; + if(openils.User.authtoken) { picker.load(); } else { -- 2.11.0