This patch adds an alert if the act of deleting a copy
location in the staff interface fails -- which would
most commonly happen if there are still active items
attached to the location to be deleted.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
var req = new Request( DELETE_CL, SESSION, cl.id() );
req.send(true);
var res = req.result();
- if(checkILSEvent(res)) throw res;
+ if (checkILSEvent(res)) {
+ alertILSEvent(res);
+ return;
+ }
alertId('cl_update_success');
clGo();
}