[open-ils-commits] r17276 - trunk/Open-ILS/web/js/ui/default/cat/authority (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Aug 19 23:36:02 EDT 2010
Author: dbs
Date: 2010-08-19 23:35:59 -0400 (Thu, 19 Aug 2010)
New Revision: 17276
Modified:
trunk/Open-ILS/web/js/ui/default/cat/authority/list.js
Log:
Add a speedbump (confirmation dialog) when deleting authority records
Modified: trunk/Open-ILS/web/js/ui/default/cat/authority/list.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/cat/authority/list.js 2010-08-20 03:27:04 UTC (rev 17275)
+++ trunk/Open-ILS/web/js/ui/default/cat/authority/list.js 2010-08-20 03:35:59 UTC (rev 17276)
@@ -73,6 +73,12 @@
// "Delete" menu item
new dijit.MenuItem({"id": "delete_" + authId, "onClick":function(){
recId = this.id.slice(this.id.lastIndexOf('_') + 1);
+
+ // Deleting an authority record is unusual; let's be 100% sure
+ if (!confirm("Are you sure you want to delete record " + recId + "?")) {
+ return;
+ }
+
pcrud = new openils.PermaCrud();
auth_rec = pcrud.retrieve("are", recId);
if (auth_rec) {
More information about the open-ils-commits
mailing list