propogate the right app_shell reference. debug cleanup
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 31 Aug 2005 14:51:52 +0000 (14:51 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 31 Aug 2005 14:51:52 +0000 (14:51 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1777 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/cat/browse_list.js
Evergreen/staff_client/chrome/content/evergreen/util/spawn_win.js

index 2654eed..a067cad 100644 (file)
@@ -257,7 +257,7 @@ function gather_copies_callback(request) {
                        //mw.sdump('D_CAT','\nvolume = ' + js2JSON(volume) + '\n');
                        mw.sdump('D_CAT',' volume id = ' + volume.id() + '\n');
                        var lib = find_ou( mw.G.org_tree, volume.owning_lib() );
-                       mw.sdump('D_CAT','+++++++++++++++++++++++++++++++++++++++++++++++++++++++lib = ' + js2JSON(lib) + '\n');
+                       mw.sdump('D_CAT','lib = ' + js2JSON(lib) + '\n');
                        if ( lib.id() == mw.G.user_ou.id() ) { flag = true; }
                        var callnumber = volume.label();
                        var copies = volume.copies();
index e5948e3..ea2b10f 100644 (file)
@@ -44,8 +44,7 @@ function spawn_interface(d,placement,place,chrome,label,passthru_params,clone) {
        }
        w.params = passthru_params;
        w.mw = mw;
-       //if (placement == 'new_tab' || placement == 'replace_tab') w.app_shell = d;
-       w.app_shell = d;
+       if (placement == 'new_tab' || placement == 'replace_tab') w.app_shell = d; else w.app_shell = app_shell;
        return w;
 }