var robj = obj.network.simple_request('BUCKET_ITEM_DELETE',
[ obj.session, 'copy', bucket_item_id ]);
if (typeof robj == 'object') throw robj;
- obj.controller.render('copy_buckets_menulist_placeholder');
} catch(E) {
alert(js2JSON(E));
}
}
+ obj.controller.render('copy_buckets_menulist_placeholder');
}
],
'copy_buckets_delete_bucket' : [
}
)
) )
- + '&single_edit=1',
+ + '&single_edit=1'
+ + '&handle_update=1',
'batch_copy_editor_win_' + win.window_name_increment(),
'chrome,resizable,modal'
);
g.session = g.cgi.param('session') || g.cgi.param('ses');
g.docid = g.cgi.param('docid');
+ g.handle_update = g.cgi.param('handle_update');
/******************************************************************************************************/
/* Get the copy ids from various sources and flesh them */
/* store the copies in the global xpcom stash */
g.stash_and_close = function() {
+ if (g.handle_update) {
+ try {
+ var r = g.network.request(
+ api.FM_ACP_FLESHED_BATCH_UPDATE.app,
+ api.FM_ACP_FLESHED_BATCH_UPDATE.method,
+ [ g.session, g.copies ]
+ );
+ /* FIXME -- revisit the return value here */
+ } catch(E) {
+ alert('copy update error: ' + js2JSON(E));
+ }
+ }
g.data.temp = js2JSON( g.copies );
g.error.sdump('D_CAT','in modal window, g.data.temp = \n' + g.data.temp + '\n');
g.data.stash('temp');