}
var dont_close = false;
- if (copies.length > 0) {
- JSAN.use('cat.util');
- if (param == 'edit') {
- copies = cat.util.spawn_copy_editor( { 'edit' : true, 'docid' : g.doc_id, 'copies' : copies, 'caller_handles_update' : true });
- }
+ if (volumes.length > 0) {
if (typeof xul_param('update_volume') == 'function') {
xul_param('update_volume')(volumes);
} else {
g.error.standard_unexpected_error_alert('volume update',r);
}
}
+ }
+ if (copies.length > 0) {
+ if (param == 'edit') {
+ JSAN.use('cat.util');
+ copies = cat.util.spawn_copy_editor( { 'edit' : true, 'docid' : g.doc_id, 'copies' : copies, 'caller_handles_update' : true });
+ }
if (typeof xul_param('update_copy') == 'function') {
xul_param('update_copy')(copies);
} else {