From: phasefx Date: Mon, 22 Oct 2007 05:45:52 +0000 (+0000) Subject: better re-selection on single-row refresh X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=70d29cfffb5d5c54a99a3bfddc52834e4c5d8550;p=Evergreen.git better re-selection on single-row refresh git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@7906 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/list.js b/Open-ILS/xul/staff_client/chrome/content/util/list.js index 42106be912..41bc97a972 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js @@ -429,7 +429,7 @@ util.list.prototype = { // if current row is selected, send another select event to re-sync data that the client code fetches on selects if ( obj.node.view.selection.isSelected( idx ) ) { dump('dispatching select event for on_retrieve for idx = ' + idx + '\n'); - util.widgets.dispatch('select',params.row_node); + util.widgets.dispatch('select',obj.node); } } catch(E) { alert('fixme2: ' + E); @@ -579,7 +579,7 @@ util.list.prototype = { // if current row is selected, send another select event to re-sync data that the client code fetches on selects if ( obj.node.view.selection.isSelected( idx ) ) { dump('dispatching select event for on_retrieve for idx = ' + idx + '\n'); - util.widgets.dispatch('select',params.row_node); + util.widgets.dispatch('select',obj.node); } } catch(E) { alert('fixme2: ' + E); @@ -653,6 +653,8 @@ util.list.prototype = { setTimeout( function() { obj.auto_retrieve(); }, 0 ); + JSAN.use('util.widgets'); util.widgets.dispatch('select',obj.node); + return params; }, @@ -811,7 +813,7 @@ util.list.prototype = { params.row = row; obj._map_row_to_listcell(params,listitem); obj.node.appendChild( listitem ); - util.widgets.dispatch('select',params.row_node); + util.widgets.dispatch('select',obj.node); } if (typeof params.retrieve_row == 'function') {