From: Bill Erickson Date: Wed, 28 Mar 2012 13:25:54 +0000 (-0400) Subject: Add onSortChange handler pass-thru to AutoGrid X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bc083c2e08332c99c821381220bc0b6999354109;p=evergreen%2Fequinox.git Add onSortChange handler pass-thru to AutoGrid Signed-off-by: Bill Erickson --- 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 {