attempt at printing from modal windows resulted in segfaults, so removing modal from...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 16 Jun 2006 21:15:44 +0000 (21:15 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 16 Jun 2006 21:15:44 +0000 (21:15 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@4666 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/print.js
Open-ILS/xul/staff_client/server/patron/bills.js

index 2f9dcdb..98fbcdb 100644 (file)
@@ -54,7 +54,7 @@ util.print.prototype = {
                        switch(content_type) {
                                case 'text/html' :
                                        var jsrc = 'data:text/javascript,' + window.escape('var params = { "data" : ' + js2JSON(params.data) + ', "list" : ' + js2JSON(params.list) + '}; function my_init() { if (' + (typeof params.modal != 'undefined' ? 'true' : 'false') + ') window.print(); }');
-                                       w = obj.win.open('data:text/html,<html><head><script src="' + window.escape(jsrc) + '"></script></head><body onload="my_init();">' + window.escape(msg) + '</body></html>','receipt_temp','chrome,resizable');
+                                       w = obj.win.open('data:text/html,<html><head><script src="' + window.escape(jsrc) + '"></script></head><body onload="">' + window.escape(msg) + '</body></html>','receipt_temp','chrome,resizable');
                                break;
                                default:
                                        w = obj.win.open('data:' + content_type + ',' + window.escape(msg),'receipt_temp','chrome,resizable');
index ab5c156..6267f51 100644 (file)
@@ -152,7 +152,7 @@ patron.bills.prototype = {
                                                                                        urls.XUL_PATRON_BILL_WIZARD
                                                                                                + '?patron_id=' + window.escape(obj.patron_id),
                                                                                        'billwizard',
-                                                                                       'chrome,resizable,modal'
+                                                                                       'chrome,resizable'
                                                                                );
                                                                                obj.refresh();
                                                                        } catch(E) {
@@ -171,7 +171,7 @@ patron.bills.prototype = {
                                                                                        urls.XUL_PATRON_BILL_HISTORY
                                                                                                + '?patron_id=' + window.escape(obj.patron_id),
                                                                                        'billhistory',
-                                                                                       'chrome,resizable,modal'
+                                                                                       'chrome,resizable'
                                                                                );
                                                                                obj.OpenILS.data.init({'via':'stash'}); if (obj.OpenILS.data.temp == 'refresh') { obj.refresh(); }
                                                                        } catch(E) {
@@ -190,7 +190,7 @@ patron.bills.prototype = {
                                                                                        urls.XUL_PATRON_BILL_HISTORY
                                                                                                + '?current=1&patron_id=' + window.escape(obj.patron_id),
                                                                                        'billhistory',
-                                                                                       'chrome,resizable,modal'
+                                                                                       'chrome,resizable'
                                                                                );
                                                                                obj.OpenILS.data.init({'via':'stash'}); if (obj.OpenILS.data.temp == 'refresh') { obj.refresh(); }
                                                                        } catch(E) {
@@ -805,7 +805,7 @@ patron.bills.prototype = {
                                                                                        + '?patron_id=' + window.escape(obj.patron_id)
                                                                                        + '&mbts_id=' + window.escape(my.mobts.id()),
                                                                                        'test' + my.mobts.id(),
-                                                                                       'modal,chrome,resizable'
+                                                                                       'chrome,resizable'
                                                                                );
                                                                                obj.OpenILS.data.init({'via':'stash'}); 
                                                                                if (obj.OpenILS.data.temp == 'refresh') {
@@ -829,7 +829,7 @@ patron.bills.prototype = {
                                                                                                + '?patron_id=' + window.escape(obj.patron_id)
                                                                                                + '&xact_id=' + window.escape( my.mobts.id() ),
                                                                                        'billwizard',
-                                                                                       'chrome,resizable,modal'
+                                                                                       'chrome,resizable'
                                                                                );
                                                                                obj.refresh();
                                                                        },