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);
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);