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 ) {
+ this._CUD( 'delete', list, opts );
+ },
+
apply : function ( list, opts ) {
this._auto_CUD( list, opts );
},
var pcrud = new openils.PermaCrud({"authtoken": G.user.session});
var mfhd_rec = pcrud.retrieve("sre", holdings.id());
if (mfhd_rec) {
- pcrud.delete(mfhd_rec);
+ pcrud.eliminate(mfhd_rec);
alert(dojo.string.substitute(opac_strings.DELETED_MFHD_RECORD, [holdings.id()]));
}
}, label:opac_strings.DELETE_MFHD}).placeAt(mfhd_edit, "last");