mitigate race condition on distributed db
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 5 Sep 2006 01:52:15 +0000 (01:52 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 5 Sep 2006 01:52:15 +0000 (01:52 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5936 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/info_group.xul

index a54a45a..edb6562 100644 (file)
                                                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();