misc
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 25 Aug 2005 17:32:24 +0000 (17:32 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 25 Aug 2005 17:32:24 +0000 (17:32 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1731 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/opac/opac.js
Evergreen/staff_client/chrome/content/evergreen/util/util_overlay.xul

index 9b076da..193d3d8 100644 (file)
@@ -85,12 +85,14 @@ function set_opac_vars(p) {
 function opac_make_details_page(p, id, node) {
        sdump('D_OPAC',arg_dump(arguments));
        dump("Node HREF attribute is: " + node.getAttribute("href") + "\n and doc id is " + id +'\n');
-       var f = function() {
+       var f = function(ev) {
                spawn_copy_browser(
                        p.w.app_shell, 'new_tab', 'main_tabbox', {
                                'find_this_id' : id
                        }
                ).find_this_id = id;
+               ev.preventDefault();
+               ev.stopPropagation();
                return true;
        }
        node.addEventListener( 'click', f, false );
index ca693c1..d841c7b 100644 (file)
@@ -20,6 +20,7 @@
        <script src="widgets.js" />     <!-- some convenience functions for XUL/HTML elements.  want to eliminate overlap with webutils -->
        <script src="populate.js" />    <!-- populate widgets (like menus) with values -->
 
+       <script src="chrome://evergreen/content/Open-ILS/util/utils.js" />
        <script src="chrome://evergreen/content/Open-ILS/util/md5.js" />
        <script src="chrome://evergreen/content/Open-ILS/util/JSON.js" />
        <script src="chrome://evergreen/content/Open-ILS/util/fmall.js" />