[open-ils-commits] r7906 - branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/util

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Oct 22 01:59:17 EDT 2007


Author: phasefx
Date: 2007-10-22 01:45:52 -0400 (Mon, 22 Oct 2007)
New Revision: 7906

Modified:
   branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/util/list.js
Log:
better re-selection on single-row refresh

Modified: branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/util/list.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/util/list.js	2007-10-22 05:45:14 UTC (rev 7905)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/util/list.js	2007-10-22 05:45:52 UTC (rev 7906)
@@ -429,7 +429,7 @@
 							// 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 @@
 							// 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 @@
 
 		setTimeout( function() { obj.auto_retrieve(); }, 0 );
 
+        JSAN.use('util.widgets'); util.widgets.dispatch('select',obj.node);
+
 		return params;
 	},
 
@@ -811,7 +813,7 @@
 						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') {



More information about the open-ils-commits mailing list