if (xulG.unified_interface) {
$('non_unified_buttons').hidden = true;
+ } else {
+ $('Create').hidden = true;
}
/***********************************************************************************************************/
set_attr('EditThenCreate','accesskey','staff.cat.volume_copy_creator.edit_then_rebarcode.btn.accesskey');
set_attr('CreateWithDefaults','label','staff.cat.volume_copy_creator.rebarcode.btn.label');
set_attr('CreateWithDefaults','accesskey','staff.cat.volume_copy_creator.rebarcode.btn.accesskey');
+ set_attr('Create','label','staff.cat.volume_copy_creator.rebarcode.btn.label');
+ set_attr('Create','accesskey','staff.cat.volume_copy_creator.rebarcode.btn.accesskey');
} else {
set_attr('EditThenCreate','label','staff.cat.volume_copy_creator.edit_then_create.btn.label');
set_attr('EditThenCreate','accesskey','staff.cat.volume_copy_creator.edit_then_create.btn.accesskey');
set_attr('CreateWithDefaults','label','staff.cat.volume_copy_creator.create_with_defaults.btn.label');
set_attr('CreateWithDefaults','accesskey','staff.cat.volume_copy_creator.create_with_defaults.btn.accesskey');
+ set_attr('Create','label','staff.cat.volume_copy_creator.create.btn.label');
+ set_attr('Create','accesskey','staff.cat.volume_copy_creator.create.btn.accesskey');
}
//g.error.sdump('D_ERROR','location.href = ' + location.href + '\n\ncopy_short cut = ' + g.copy_shortcut + '\n\nou_ids = ' + xul_param('ou_ids'));
if (! xulG.unified_interface) {
document.getElementById("EditThenCreate").disabled = false;
document.getElementById("CreateWithDefaults").disabled = false;
+ } else {
+ document.getElementById("Create").disabled = false;
}
}
if (! xulG.unified_interface) {
document.getElementById("EditThenCreate").disabled = false;
document.getElementById("CreateWithDefaults").disabled = false;
+ } else {
+ document.getElementById("Create").disabled = false;
}
}
try {
- var copies = g.gather_copies();
+ var copies;
+ if (xulG.unified_interface) {
+ copies = xulG.copies;
+ } else {
+ copies = g.gather_copies();
+ }
var dont_close = false;
JSAN.use('util.window'); var win = new util.window();
try { if (typeof window.refresh == 'function') { window.refresh(); } } catch(E) { dump(E+'\n'); }
try { if (typeof g.refresh == 'function') { g.refresh(); } } catch(E) { dump(E+'\n'); }
+ if (typeof xulG.unlock_copy_editor == 'function') {
+ xulG.unlock_copy_editor();
+ }
+
if (! dont_close) { xulG.close_tab(); }
} catch(E) {
</rows>
</grid>
</groupbox>
- <hbox id="non_unified_buttons" style="border-bottom: solid black thin">
+ <hbox style="border-bottom: solid black thin">
<spacer flex="1" />
- <button id="CreateWithDefaults" disabled="true" oncommand="g.stash_and_close('noedit');"/>
- <button id="EditThenCreate" disabled="true" oncommand="g.stash_and_close('edit');"/>
+ <hbox id="non_unified_buttons">
+ <button id="CreateWithDefaults" disabled="true" oncommand="g.stash_and_close('noedit');"/>
+ <button id="EditThenCreate" disabled="true" oncommand="g.stash_and_close('edit');"/>
+ </hbox>
+ <button id="Create" disabled="true" oncommand="g.stash_and_close('unified_interface');"/>
</hbox>
</window>