give display something to call, and bill a way to callback to display
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Dec 2005 00:17:31 +0000 (00:17 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Dec 2005 00:17:31 +0000 (00:17 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2483 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/bills.js

index e36ccd2..dbe09cf 100644 (file)
@@ -10,6 +10,7 @@ patron.bills = function (params) {
        } catch(E) { 
                alert(E); 
        }
+       window.refresh = function() { this.refresh(); }
 }
 
 patron.bills.prototype = {
@@ -77,6 +78,9 @@ patron.bills.prototype = {
                                                                        'billwizard',
                                                                        'chrome,resizable,modal'
                                                                );
+                                                               if (typeof window.display_refresh == 'function') {
+                                                                       try { window.display_refresh(); } catch(E) { obj.error.sdump('D_ERROR',E); }
+                                                               }
                                                                obj.refresh();
                                                        } catch(E) {
                                                                obj.error.sdump('D_ERROR',E);