Acq+Vandelay: post-upload links open in embedded browser
authorBill Erickson <berick@esilibrary.com>
Wed, 29 Feb 2012 23:03:08 +0000 (18:03 -0500)
committerThomas Berezansky <tsbere@mvlc.org>
Thu, 15 Mar 2012 19:23:54 +0000 (15:23 -0400)
This change causes the picklist, PO, and queue links which appear after
a vendor file upload to open their respective pages with the xul browser
wrapper.  Without this, the existing page CSS is ignored and everything,
including href's, are grey and washed out.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/web/js/dojo/openils/XUL.js
Open-ILS/web/js/ui/default/acq/picklist/upload.js

index 9d93f2e..6bf2c3b 100644 (file)
@@ -57,7 +57,7 @@ if(!dojo._hasResource["openils.XUL"]) {
         var loc = xulG.url_prefix(url);
 
         if (wrap_in_browser) {
-            loc = urls.XUL_BROWSER + "?url=" + window.escape(loc);
+            loc = xulG.urls.XUL_BROWSER + "?url=" + window.escape(loc);
             content_params = dojo.mixin(
                 {
                     "no_xulG": false, "show_print_button": true,
index c6b83d5..27f448f 100644 (file)
@@ -131,7 +131,7 @@ function acqHandlePostUpload(key, plId) {
                                 link.setAttribute('href', url); 
                             } else {
                                 link.setAttribute('href', 'javascript:;'); // for linky-ness
-                                link.onclick = function() { openils.XUL.newTabEasy(url) };
+                                link.onclick = function() { openils.XUL.newTabEasy(url, null, null, true) };
                             }
                         }