var idx = this.find_index(url);
if (idx>-1) {
this.node.selectedIndex = idx;
+ return this.node.childNodes[idx];
} else {
- this.new_iframe(url,params,content_params);
+ return this.new_iframe(url,params,content_params);
}
'reset_iframe' : function (url,params,content_params) {
this.remove_iframe(url);
- this.new_iframe(url,params,content_params);
+ return this.new_iframe(url,params,content_params);
},
'new_iframe' : function (url,params,content_params) {
dump('E: ' + E + '\n');
}
}
+ return iframe;
},
'remove_iframe' : function (url) {
{},
{
'on_checkout' : function(checkout) {
- var c = obj.patron.checkouts();
+ var c = obj.summary_window.g.summary.patron.checkouts();
c.push( checkout );
- obj.patron.checkouts( c );
- obj.controller.render('patron_checkouts');
+ obj.summary_window.g.summary.patron.checkouts( c );
+ obj.summary_window.g.summary.controller.render('patron_checkouts');
}
}
);
);
if (obj.barcode) {
- obj.left_deck.set_iframe(
+ var frame = obj.left_deck.set_iframe(
urls.remote_patron_summary
+'?session=' + window.escape(obj.session)
+'&barcode=' + window.escape(obj.barcode),
}
}
);
+ obj.summary_window = frame.contentWindow;
}
},
}
JSAN.use('patron.summary'); g.summary = new patron.summary();
g.summary.init( { 'barcode' : g.cgi.param('barcode') , 'session' : g.cgi.param('session') } );
-
} catch(E) {
var err_msg = "!! This software has encountered an error. Please tell your friendly " +
"system administrator or software developer the following:\n" + E + '\n';