[open-ils-commits] r8031 - trunk/Open-ILS/xul/staff_client/chrome/content/cat

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Nov 7 10:42:46 EST 2007


Author: phasefx
Date: 2007-11-07 10:27:03 -0500 (Wed, 07 Nov 2007)
New Revision: 8031

Modified:
   trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
Log:
Record Delete action in embedded opac

Modified: trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js	2007-11-07 14:53:26 UTC (rev 8030)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js	2007-11-07 15:27:03 UTC (rev 8031)
@@ -230,18 +230,18 @@
 	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 );



More information about the open-ils-commits mailing list