From 8326f7fba61945c500fb58804344b90a4fe14976 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 7 Nov 2007 15:27:03 +0000 Subject: [PATCH] Record Delete action in embedded opac git-svn-id: svn://svn.open-ils.org/ILS/trunk@8031 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/cat/opac.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js index 6e4494b1e6..3675a68491 100644 --- a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js +++ b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js @@ -230,18 +230,18 @@ function mark_for_overlay() { g.data.marked_record = docid; g.data.stash('marked_record'); } -/* + function delete_record() { - if (g.error.yns_alert('Are you sure you want to delete title record #' + docid + ' from the catalog?','title','butn 1','butn 2','butn 3','checkbox') == 1) { + if (g.error.yns_alert('Are you sure you want to delete title record #' + docid + ' from the catalog?','Delete Record','Delete','Cancel',null,'Check here to confirm this action.') == 0) { var robj = g.network.simple_request('FM_BRE_DELETE',[ses(),docid]); if (typeof robj.ilsevent != 'undefined') { - alert('Error deleting Record #' + docid + ' : ' + robj.textcode + ' : ' + robj.desc + '\n'; + alert('Error deleting Record #' + docid + ' : ' + robj.textcode + ' : ' + robj.desc + '\n'); } else { alert('Record deleted.'); refresh_display(docid,true); } } } -*/ + function refresh_display(id,reset) { try { while(top_pane.node.lastChild) top_pane.node.removeChild( top_pane.node.lastChild ); -- 2.11.0