JSAN.use('OpenILS.data'); g.data = new OpenILS.data(); g.data.init({'via':'stash'});
JSAN.use('util.network'); g.network = new util.network();
+ if (xulG.unified_interface) {
+ $('non_unified_buttons').hidden = true;
+ }
+
g.docid = xul_param('docid',{'modal_xulG':true});
g.handle_update = xul_param('handle_update',{'modal_xulG':true});
<hbox id="nav">
<spacer flex="1"/>
<button id="copy_notes" label="&staff.cat.copy_editor.copy_notes.label;" accesskey="&staff.cat.copy_editor.copy_notes.accesskey;" oncommand="g.copy_notes();"/>
- <button id="save" label="&staff.cat.copy_editor.save.label;" hidden="true" accesskey="&staff.cat.copy_editor.save.accesskey;" oncommand="g.stash_and_close();"/>
- <button id="cancel" label="&staff.cat.copy_editor.cancel.label;" accesskey="&staff.cat.copy_editor.cancel.accesskey;" oncommand="JSAN.use('util.widgets'); util.widgets.dispatch('close',window);"/>
+ <hbox id="non_unified_buttons">
+ <button id="save" label="&staff.cat.copy_editor.save.label;" hidden="true" accesskey="&staff.cat.copy_editor.save.accesskey;" oncommand="g.stash_and_close();"/>
+ <button id="cancel" label="&staff.cat.copy_editor.cancel.label;" accesskey="&staff.cat.copy_editor.cancel.accesskey;" oncommand="JSAN.use('util.widgets'); util.widgets.dispatch('close',window);"/>
+ </hbox>
</hbox>
<spacer/>
g.refresh = xul_param('onrefresh');
+ if (xulG.unified_interface) {
+ $('non_unified_buttons').hidden = true;
+ }
+
/***********************************************************************************************************/
/* Am I adding just copies or copies and volumes? Or am I rebarcoding existing copies? */
ou_id
);
- document.getElementById("EditThenCreate").disabled = false;
- document.getElementById("CreateWithDefaults").disabled = false;
+ if (! xulG.unified_interface) {
+ document.getElementById("EditThenCreate").disabled = false;
+ document.getElementById("CreateWithDefaults").disabled = false;
+ }
}
function handle_change_call_number_column_textbox(ev) {
g.render_barcode_entry = function(node,callnumber,count,ou_id) {
try {
function ready_to_create(ev) {
- document.getElementById("EditThenCreate").disabled = false;
- document.getElementById("CreateWithDefaults").disabled = false;
+ if (! xulG.unified_interface) {
+ document.getElementById("EditThenCreate").disabled = false;
+ document.getElementById("CreateWithDefaults").disabled = false;
+ }
}
JSAN.use('util.barcode');
</rows>
</grid>
</groupbox>
- <hbox style="border-bottom: solid black thin">
+ <hbox id="non_unified_buttons" 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');"/>