[open-ils-commits] r8542 - branches/rel_1_2_1/Open-ILS/xul/staff_client/chrome/content/util

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jan 30 14:25:44 EST 2008


Author: phasefx
Date: 2008-01-30 13:58:13 -0500 (Wed, 30 Jan 2008)
New Revision: 8542

Modified:
   branches/rel_1_2_1/Open-ILS/xul/staff_client/chrome/content/util/list.js
Log:
change D_ALERT log level to D_WARN to avoid unneeded popups

Modified: branches/rel_1_2_1/Open-ILS/xul/staff_client/chrome/content/util/list.js
===================================================================
--- branches/rel_1_2_1/Open-ILS/xul/staff_client/chrome/content/util/list.js	2008-01-30 18:14:37 UTC (rev 8541)
+++ branches/rel_1_2_1/Open-ILS/xul/staff_client/chrome/content/util/list.js	2008-01-30 18:58:13 UTC (rev 8542)
@@ -362,10 +362,10 @@
 					setTimeout(function() {
 						dump('auto-selecting\n');
 						var idx = Number(obj.node.view.rowCount)-1;
-						try { obj.node.view.selection.select(idx); } catch(E) { obj.error.sdump('D_ALERT','tree auto select: ' + E + '\n'); }
-						try { if (typeof params.on_select == 'function') params.on_select(); } catch(E) { obj.error.sdump('D_ALERT','tree auto select, on_select: ' + E + '\n'); }
+						try { obj.node.view.selection.select(idx); } catch(E) { obj.error.sdump('D_WARN','tree auto select: ' + E + '\n'); }
+						try { if (typeof params.on_select == 'function') params.on_select(); } catch(E) { obj.error.sdump('D_WARN','tree auto select, on_select: ' + E + '\n'); }
 						obj.auto_select_pending = false;
-						try { util.widgets.dispatch('flesh',obj.node.contentView.getItemAtIndex(idx).firstChild); } catch(E) { obj.error.sdump('D_ALERT','tree auto select, flesh: ' + E + '\n'); }
+						try { util.widgets.dispatch('flesh',obj.node.contentView.getItemAtIndex(idx).firstChild); } catch(E) { obj.error.sdump('D_WARN','tree auto select, flesh: ' + E + '\n'); }
 					}, 1000);
 				}
 			}
@@ -379,10 +379,10 @@
 				if (!obj.auto_select_pending) {
 					obj.auto_select_pending = true;
 					setTimeout(function() {
-						try { obj.node.view.selection.select(0); } catch(E) { obj.error.sdump('D_ALERT','tree auto select: ' + E + '\n'); }
-						try { if (typeof params.on_select == 'function') params.on_select(); } catch(E) { obj.error.sdump('D_ALERT','tree auto select, on_select: ' + E + '\n'); }
+						try { obj.node.view.selection.select(0); } catch(E) { obj.error.sdump('D_WARN','tree auto select: ' + E + '\n'); }
+						try { if (typeof params.on_select == 'function') params.on_select(); } catch(E) { obj.error.sdump('D_WARN','tree auto select, on_select: ' + E + '\n'); }
 						obj.auto_select_pending = false;
-						try { util.widgets.dispatch('flesh',obj.node.contentView.getItemAtIndex(0).firstChild); } catch(E) { obj.error.sdump('D_ALERT','tree auto select, flesh: ' + E + '\n'); }
+						try { util.widgets.dispatch('flesh',obj.node.contentView.getItemAtIndex(0).firstChild); } catch(E) { obj.error.sdump('D_WARN','tree auto select, flesh: ' + E + '\n'); }
 					}, 1000);
 				}
 			}
@@ -526,10 +526,10 @@
 					setTimeout(function() {
 						dump('auto-selecting\n');
 						var idx = Number(obj.node.view.rowCount)-1;
-						try { obj.node.view.selection.select(idx); } catch(E) { obj.error.sdump('D_ALERT','tree auto select: ' + E + '\n'); }
-						try { if (typeof params.on_select == 'function') params.on_select(); } catch(E) { obj.error.sdump('D_ALERT','tree auto select, on_select: ' + E + '\n'); }
+						try { obj.node.view.selection.select(idx); } catch(E) { obj.error.sdump('D_WARN','tree auto select: ' + E + '\n'); }
+						try { if (typeof params.on_select == 'function') params.on_select(); } catch(E) { obj.error.sdump('D_WARN','tree auto select, on_select: ' + E + '\n'); }
 						obj.auto_select_pending = false;
-						try { util.widgets.dispatch('flesh',obj.node.contentView.getItemAtIndex(idx).firstChild); } catch(E) { obj.error.sdump('D_ALERT','tree auto select, flesh: ' + E + '\n'); }
+						try { util.widgets.dispatch('flesh',obj.node.contentView.getItemAtIndex(idx).firstChild); } catch(E) { obj.error.sdump('D_WARN','tree auto select, flesh: ' + E + '\n'); }
 					}, 1000);
 				}
 			}



More information about the open-ils-commits mailing list