Refactor can_have_copies check in copy_broswer.js.
authorJason Stephenson <jstephenson@mvlc.org>
Tue, 4 Oct 2011 15:00:21 +0000 (11:00 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Tue, 15 Nov 2011 22:14:25 +0000 (17:14 -0500)
commit9bae5e117691c2ce25d5f305a44d844565904270
tree66b3922cb35b4c585caafcabe502935ebc3ee8fc
parent3cdedae89b92d5351bb57e515a2bbcebe6ccbebe
Refactor can_have_copies check in copy_broswer.js.

Since we want to check in two places, move the can_have_copies flag
and source name to be variable members of the this object.

Initialize the members in the source_init function.

Check the members in the add_volumes and add_items commands.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/xul/staff_client/server/cat/copy_browser.js