JSAN.use('util.window'); var win = new util.window();
win.open(
xulG.url_prefix(urls.XUL_SERIAL_SELECT_AOU),
- 'sel_bucket_win' + win.window_name_increment(),
+ '_blank',
'chrome,resizable,modal,centerscreen'
);
if (!g.data.create_mfhd_aou) {
JSAN.use('util.window'); var win = new util.window();
win.open(
xulG.url_prefix(urls.XUL_RECORD_BUCKETS_QUICK),
- 'sel_bucket_win' + win.window_name_increment(),
+ '_blank',
'chrome,resizable,modal,centerscreen',
{
record_ids: [ docid ]
// list of documents for debugging. BROKEN
'doc_list' : [],
- // Windows need unique names. This number helps.
- 'window_name_increment' : function() {
- JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.init({'via':'stash'});
- if (typeof data.window_name_increment == 'undefined') {
- data.window_name_increment = 1;
- } else {
- data.window_name_increment++;
- }
- data.stash('window_name_increment');
- return data.window_name_increment;
- },
-
// This number gets put into the title bar for Top Level menu interface windows
'appshell_name_increment' : function() {
JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.init({'via':'stash'});
'open' : function(url,title,features,my_xulG) {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var key;
- if (!title) title = 'anon' + this.window_name_increment();
+ if (!title) title = '_blank';
if (!features) features = 'chrome';
this.error.sdump('D_WIN', 'opening ' + url + ', ' + title + ', ' + features + ' from ' + this.win + '\n');
var data;
data.stash('cb_temp_copy_ids');
win.open(
xulG.url_prefix(urls.XUL_COPY_BUCKETS_QUICK),
- 'sel_bucket_win' + win.window_name_increment(),
+ '_blank',
'chrome,resizable,center'
);
}
JSAN.use('util.window'); var win = new util.window();
win.open(
xulG.url_prefix(urls.XUL_RECORD_BUCKETS_QUICK),
- 'sel_bucket_win' + win.window_name_increment(),
+ '_blank',
'chrome,resizable,modal,center',
{
record_ids: record_ids
JSAN.use('util.window'); var win = new util.window();
win.open(
xulG.url_prefix(urls.XUL_SERIAL_SELECT_UNIT),
- 'sel_serial_sunit_win_' + win.window_name_increment(),
+ '_blank',
'chrome,resizable,modal,centerscreen'
);
if (!g.serial_items_sunit_select) {