complete the transition from delete() to eliminate()
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 5 Mar 2010 19:57:06 +0000 (19:57 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 5 Mar 2010 19:57:06 +0000 (19:57 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15721 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/PermaCrud.js
Open-ILS/web/js/ui/default/acq/common/li_table.js
Open-ILS/web/js/ui/default/conify/global/action/survey/edit.js
Open-ILS/web/js/ui/default/conify/global/asset/copy_location_order.js
Open-ILS/web/js/ui/default/conify/global/config/circ_matrix_matchpoint.js

index 5dbc813..85ea9e5 100644 (file)
@@ -323,13 +323,15 @@ if(!dojo._hasResource["openils.PermaCrud"]) {
             return obj_list;
         },
 
+       /* 
+        * 'delete' is a reserved keyword in JavaScript and can't be used
+        * in browsers like IE or Chrome, so we define a safe synonym
+     * NOTE: delete() is now removed -- use eliminate instead
+
         delete : function ( list, opts ) {
             return this._CUD( 'delete', list, opts );
         },
 
-       /* 
-        * 'delete' is a reserved keyword in JavaScript and can't be used
-        * in browsers like IE or Chrome, so we define a safe synonym
         */
         eliminate: function ( list, opts ) {
             return this._CUD( 'delete', list, opts );
index ccbc75d..ddb3fe7 100644 (file)
@@ -786,7 +786,7 @@ function AcqLiTable() {
 
     this.deleteDfa = function(dfa) {
         if (dfa.id() > 0) { /* real */
-            this.pcrud.delete(
+            this.pcrud.eliminate(
                 dfa, {
                     "async": true,
                     "oncomplete": function() {
index 132c3fc..7f3dbc6 100644 (file)
@@ -152,7 +152,7 @@ function deleteQuestion(quesId, surveyBody) {
     delQuestion.id(quesId);
     delQuestion.isdeleted(true);
     surveyBody.parentNode.removeChild(surveyBody);
-    return pcrud.delete(delQuestion);
+    return pcrud.eliminate(delQuestion);
 
 }
 
@@ -193,7 +193,7 @@ function deleteAnswer(ansId) {
     var delAnswer = new asva();
     delAnswer.id(ansId);
     delAnswer.isdeleted(true);
-    return pcrud.delete(delAnswer);
+    return pcrud.eliminate(delAnswer);
   
 }
 function newAnswer(quesId, answerText, answerRow, surveyBody) {
index 3bdd802..f444df7 100644 (file)
@@ -86,7 +86,7 @@ function applyChanges() {
 function deleteOrders(onload) {
     // delete the existing order entries in preparation for new ones
     var pcrud = new openils.PermaCrud({authtoken : user.authtoken});
-    pcrud.delete(
+    pcrud.eliminate(
         orders,
         {
             async : true,
index 990bbaf..4bf0c38 100644 (file)
@@ -169,7 +169,7 @@ function applyCircModChanges() {
                         pcrud.create(newOnes, {
                             oncomplete : function() {
                                 if(delOnes.length) {
-                                    pcrud.delete(delOnes, {
+                                    pcrud.eliminate(delOnes, {
                                         oncomplete : function() {
                                             progressDialog.hide();
                                         }
@@ -180,7 +180,7 @@ function applyCircModChanges() {
                             }
                         });
                     } else {
-                        pcrud.delete(delOnes, {
+                        pcrud.eliminate(delOnes, {
                             oncomplete : function() {
                                 progressDialog.hide();
                             }