mitigate db update display race
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Sep 2006 02:58:25 +0000 (02:58 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Sep 2006 02:58:25 +0000 (02:58 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6052 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/copy_notes.xul
Open-ILS/xul/staff_client/server/patron/info_notes.xul

index a7b7f02..670cf17 100644 (file)
                                                                var r = g.error.yns_alert('Delete the note titled "' + g.notes[id].title() + '" created on ' + g.notes[id].create_date().toString().substr(0,10) + '?','Delete Note','Yes','No',null,'Check here to confirm this action'); 
                                                                if (r == 0) {
                                                                        g.network.simple_request('FM_ACPN_DELETE',[ses(),g.notes[id].id()]);
-                                                                       setTimeout(function(){ refresh();},0);
+                                                                       setTimeout(function(){ alert('Note deleted.'); refresh();},0);
                                                                }
                                                        } }(i),
                                                        false
                                        note.owning_copy( g.copy_id );
                                        var r = g.network.simple_request('FM_ACPN_CREATE',[ ses(), note ]);
                                        if (typeof r.ilsevent != 'undefined') throw(r);
-                                       setTimeout(function(){refresh();},0);
+                                       setTimeout(function(){alert('Note added.');refresh();},0);
                                }
                        } catch(E) {
                                g.error.standard_unexpected_error_alert('The note was not likely created.',E);
index d446ada..1793851 100644 (file)
                                                                var r = g.error.yns_alert('Delete the note titled "' + g.notes[id].title() + '" created on ' + g.notes[id].create_date().toString().substr(0,10) + '?','Delete Note','Yes','No',null,'Check here to confirm this action'); 
                                                                if (r == 0) {
                                                                        g.network.simple_request('FM_AUN_DELETE',[ses(),g.notes[id].id()]);
-                                                                       setTimeout(function(){ refresh();},0);
+                                                                       setTimeout(function(){ alert('Note deleted.'); refresh();},0);
                                                                }
                                                        } }(i),
                                                        false
                                        note.usr( g.patron_id );
                                        var r = g.network.simple_request('FM_AUN_CREATE',[ ses(), note ]);
                                        if (typeof r.ilsevent != 'undefined') throw(r);
-                                       setTimeout(function(){refresh();},0);
+                                       setTimeout(function(){ alert('Note added.'); refresh();},0);
                                }
                        } catch(E) {
                                g.error.standard_unexpected_error_alert('The note was not likely created.',E);