pass staff client build_id to reporter as a query param so it can correctly spawn...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 18 Sep 2007 14:28:51 +0000 (14:28 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 18 Sep 2007 14:28:51 +0000 (14:28 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@7799 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/admin/index.xhtml

index e6671e4..b1b8779 100644 (file)
@@ -3,7 +3,16 @@
        <head>
                <title>Local System Administration</title>
                <script>
-                       function _l(l) { location.href = l + location.search; }
+                       function _l(l,p) { 
+                var url = l + location.search;
+                if (p) {
+                    if (location.search) { url += '&amp;'; } else { url += '?'; }
+                    url += p;
+                }
+                dump('setting location.href to ' + url + '\n');
+                location.href = url;
+            }
+            function getBuildId() { return location.href.match(/\/xul\/(.+?)\/server\//)[1]; }
                </script>
                <style type='text/css'>
                        body { background-color: white; }
@@ -60,7 +69,7 @@
                                                                <a href='javascript:_l("hold_pull_list_classic.xhtml");'>Pull List for Hold Requests (Classic)</a> <span style="color: red">(Testing)</span>
                                                        </div>
                                                        <div style='padding: 8px;'>
-                                                               <a href='javascript:_l("/reports/oils_rpt.xhtml");'>Reports</a>
+                                                               <a href='javascript:_l( "/reports/oils_rpt.xhtml","build_id=" + getBuildId() );'>Reports</a>
                                                        </div>
                                                        <div style='padding: 8px;'>
                                                                <a href='javascript:_l("cash_reports.xhtml");'>Cash Reports</a>