setting the debug link value should not be dependent on a on_url_load function being...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 17 Dec 2009 05:58:50 +0000 (05:58 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 17 Dec 2009 05:58:50 +0000 (05:58 +0000)
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

index ca5980f..707cc84 100644 (file)
@@ -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) {