[OFBiz] SVN: r7636 - trunk/framework/images/webapp/images
jaz@svn.ofbiz.org
jaz at svn.ofbiz.org
Thu May 18 23:52:14 CDT 2006
Author: jaz
Date: 2006-05-18 23:52:11 -0500 (Thu, 18 May 2006)
New Revision: 7636
Modified:
trunk/framework/images/webapp/images/selectall.js
Log:
changed popup print box to point to a local print server
Modified: trunk/framework/images/webapp/images/selectall.js
===================================================================
--- trunk/framework/images/webapp/images/selectall.js 2006-05-19 04:51:43 UTC (rev 7635)
+++ trunk/framework/images/webapp/images/selectall.js 2006-05-19 04:52:11 UTC (rev 7636)
@@ -91,26 +91,26 @@
function popUpSmall(url, name) {
popUp(url, name, '300', '450');
}
-function popUpPrint(serverRoot, screen1) {
- popUpPrint(serverRoot, screen1, null, null);
+function popUpPrint(printserver, screen1) {
+ popUpPrint(printserver, screen1, null, null);
}
-function popUpPrint(serverRoot, screen1, screen2) {
- popUpPrint(serverRoot, screen1, screen2, null);
+function popUpPrint(printserver, screen1, screen2) {
+ popUpPrint(printserver, screen1, screen2, null);
}
-function popUpPrint(serverRoot, screen1, screen2, screen3) {
- if (serverRoot == null) {
- serverRoot = "";
+function popUpPrint(printserver, screen1, screen2, screen3) {
+ if (printserver == null) {
+ printserver = "http://localhost:10080/"; // default print server port
}
- var url = serverRoot + "/webtools/control/print";
-
if (screen1 != null) {
screen1 = screen1.replace(/\:/g, "%3A");
screen1 = screen1.replace(/\//g, "%2F");
screen1 = screen1.replace(/\#/g, "%23");
screen1 = screen1.replace(/\?/g, "%3F");
screen1 = screen1.replace(/\=/g, "%3D");
- url = url + "?screen=" + screen1;
+ url = printserver + screen1;
+ window.open(url, "screen1", 'location=no,statusbar=1,menubar=0,scrollbars,width=60,height=10,top=0,left=0');
+ self.focus();
if (screen2 != null) {
screen2 = screen2.replace(/\:/g, "%3A");
@@ -118,7 +118,9 @@
screen2 = screen2.replace(/\#/g, "%23");
screen2 = screen2.replace(/\?/g, "%3F");
screen2 = screen2.replace(/\=/g, "%3D");
- url = url + "&screen=" + screen2;
+ url = printserver + screen2;
+ window.open(url, "screen2", 'location=no,statusbar=1,menubar=0,scrollbars,width=60,height=10,top=0,left=0');
+ self.focus();
if (screen3 != null) {
screen3 = screen3.replace(/\:/g, "%3A");
@@ -126,12 +128,12 @@
screen3 = screen3.replace(/\#/g, "%23");
screen3 = screen3.replace(/\?/g, "%3F");
screen3 = screen3.replace(/\=/g, "%3D");
- url = url + "&screen=" + screen3;
+ url = printserver + screen3;
+ window.open(url, "screen13", 'location=no,statusbar=1,menubar=0,scrollbars,width=60,height=10,top=0,left=0');
+ self.focus();
}
}
}
-
- popupWindow = window.open(url, name, 'location=no,statusbar=1,menubar=0,scrollbars,width=375,height=75,top=0,left=0');
}
// hidden div functions
More information about the Svn
mailing list