[open-ils-commits] r7799 - trunk/Open-ILS/xul/staff_client/server/admin

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Sep 18 10:37:37 EDT 2007


Author: phasefx
Date: 2007-09-18 10:28:51 -0400 (Tue, 18 Sep 2007)
New Revision: 7799

Modified:
   trunk/Open-ILS/xul/staff_client/server/admin/index.xhtml
Log:
pass staff client build_id to reporter as a query param so it can correctly spawn staff client interfaces

Modified: trunk/Open-ILS/xul/staff_client/server/admin/index.xhtml
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/admin/index.xhtml	2007-09-18 13:28:11 UTC (rev 7798)
+++ trunk/Open-ILS/xul/staff_client/server/admin/index.xhtml	2007-09-18 14:28:51 UTC (rev 7799)
@@ -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>



More information about the open-ils-commits mailing list