From 350bd238c80dd1d33974ce869be1b13d2492d03d Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 17 Dec 2009 05:58:50 +0000 Subject: [PATCH] setting the debug link value should not be dependent on a on_url_load function being passed into browser.js git-svn-id: svn://svn.open-ils.org/ILS/trunk@15180 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/util/browser.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/util/browser.js b/Open-ILS/xul/staff_client/chrome/content/util/browser.js index ca5980f95..707cc8426 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/browser.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/browser.js @@ -216,17 +216,17 @@ util.browser.prototype = { try { obj.error.sdump('D_TRACE','calling on_url_load'); obj.on_url_load( obj.controller.view.browser_browser ); - if (obj.debug_label) { - try { - document.getElementById(obj.debug_label).setAttribute('tooltiptext','url: ' + obj.get_content().location.href); - } catch(E) { - obj.error.sdump('D_ERROR','on_url_load, debug_label: ' + E ); - } - } } catch(E) { obj.error.sdump('D_ERROR','on_url_load: ' + E ); } } + if (obj.debug_label) { + try { + document.getElementById(obj.debug_label).setAttribute('tooltiptext','url: ' + obj.get_content().location.href); + } catch(E) { + obj.error.sdump('D_ERROR','on_url_load, debug_label: ' + E ); + } + } } } if (stateFlags & nsIWebProgressListener.STATE_IS_NETWORK) { -- 2.11.0