sel,
function(o) { return o.getAttribute('retrieve_id'); }
);
+ obj.controller.view.cmd_sel_clip.setAttribute('disabled', list.length < 1 );
if (typeof obj.on_select == 'function') {
obj.on_select(list);
}
alert( js2JSON( obj.list.dump() ) );
}
],
+ 'cmd_sel_clip' : [
+ ['command'],
+ function() {
+ try {
+ obj.list.clipboard();
+ } catch(E) {
+ obj.error.standard_unexpected_error_alert('patron search clipboard',E);
+ }
+ }
+ ],
}
}
);
<command id="cmd_patron_edit" />
<command id="cmd_patron_info" />
<command id="cmd_search_print" />
+ <command id="cmd_sel_clip" disabled="true"/>
</commandset>
<box id="patron_search_result_main" />
<tree id="patron_list" flex="1" enableColumnDrag="true" seltype="multiple"/>
<hbox>
<spacer flex="1"/>
+ <button label="Copy to Clipboard" command="cmd_sel_clip"/>
<button label="Print" command="cmd_search_print" />
</hbox>
</vbox>