one way to refresh an interface
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Dec 2005 00:13:47 +0000 (00:13 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Dec 2005 00:13:47 +0000 (00:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2482 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 401484f..e36ccd2 100644 (file)
@@ -19,15 +19,15 @@ patron.bills.prototype = {
        'current_payments' : [],
 
        'refresh' : function() {
-               alert('refresh called');
+               location.href = location.href;
        },
 
        'init' : function( params ) {
 
                var obj = this;
 
-               obj.session = params['session'];
-               obj.patron_id = params['patron_id'];
+               obj.session = obj.session || params['session'];
+               obj.patron_id = obj.patron_id || params['patron_id'];
 
                JSAN.use('util.list'); obj.list = new util.list('bill_list');