function create_mfhd() {
try {
- g.data.create_mfhd_aou = '';
JSAN.use('util.window'); var win = new util.window();
- win.open(
+ var select_aou_window = win.open(
xulG.url_prefix(urls.XUL_SERIAL_SELECT_AOU),
'_blank',
- 'chrome,resizable,modal,centerscreen'
+ 'chrome,resizable,modal,centerscreen',
+ {'server_unadorned' : g.data.server_unadorned}
);
- if (!g.data.create_mfhd_aou) {
+ if (!select_aou_window.create_mfhd_aou) {
return;
}
var r = g.network.simple_request(
'MFHD_XML_RECORD_CREATE',
- [ ses(), 1, g.data.create_mfhd_aou, docid ]
+ [ ses(), 1, select_aou_window.create_mfhd_aou, docid ]
);
if (typeof r.ilsevent != 'undefined') {
throw(r);
var file; var list_data; var ml;
file = new util.file('offline_ou_list');
+ var server_unadorned = xul_param('server_unadorned',{'modal_xulG':true});
if (file._file.exists()) {
list_data = file.get_object(); file.close();
ml = util.widgets.make_menulist( list_data[0], list_data[1] );
'command',
function(ev) {
//if (document.getElementById('refresh_button')) document.getElementById('refresh_button').focus();
- JSAN.use('util.file'); var file = new util.file('mfhd_create_prefs.'+opener.g.data.server_unadorned);
+ JSAN.use('util.file'); var file = new util.file('mfhd_create_prefs.'+server_unadorned);
util.widgets.save_attributes(file, { 'lib_menu' : [ 'value' ] });
},
false
throw(document.getElementById('catStrings').getString('staff.cat.copy_browser.missing_library') + '\n'); //TODO: different error?
}
- file = new util.file('mfhd_create_prefs.'+opener.g.data.server_unadorned);
+ file = new util.file('mfhd_create_prefs.'+server_unadorned);
util.widgets.load_attributes(file);
ml.value = ml.getAttribute('value');
} catch(E) {
}
g.select_aou = function() {
- opener.g.data.create_mfhd_aou = $('lib_menu').value;
+ update_modal_xulG({'create_mfhd_aou' : $('lib_menu').value});
window.close();
}