g.error.standard_unexpected_error_alert('error removing patron (id=' + g.sel_list[i] + ') from usergroup',robj);
}
}
- alert('Patrons removed from group.'); /* FIXME - xulrunner bug if this alert comes after refresh? */
+ alert('Patrons removed from group.');
+ /* FIXME - xulrunner bug if this alert comes after refresh? */
+ /* that's okay, because now that we're on a distributed database, we want human delay to mitigate race conditions */
refresh();
} else {
alert('Patron not removed from group.');
if (typeof robj.ilsevent != 'undefined') g.error.standard_unexpected_error_alert('error linking patron (id=' + g.sel_list[i] + ')', robj);
}
}
- refresh();
alert('User groups updated.');
+ refresh();
} catch(E) {
g.error.standard_unexpected_error_alert('error linking patrons',E);
refresh();