[open-ils-commits] r15436 - in trunk/Open-ILS/web/js/ui/default: acq/po conify/global/config (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Feb 2 16:38:25 EST 2010
Author: erickson
Date: 2010-02-02 16:38:19 -0500 (Tue, 02 Feb 2010)
New Revision: 15436
Modified:
trunk/Open-ILS/web/js/ui/default/acq/po/view_po.js
trunk/Open-ILS/web/js/ui/default/conify/global/config/circ_matrix_matchpoint.js
Log:
updated oncomplete handlers for new PermaCrud CUD response style
Modified: trunk/Open-ILS/web/js/ui/default/acq/po/view_po.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/po/view_po.js 2010-02-02 21:25:44 UTC (rev 15435)
+++ trunk/Open-ILS/web/js/ui/default/acq/po/view_po.js 2010-02-02 21:38:19 UTC (rev 15436)
@@ -65,8 +65,8 @@
PO.name(value);
var pcrud = new openils.PermaCrud();
pcrud.update(PO, {
- oncomplete : function(r) {
- var stat = openils.Util.readResponse(r);
+ oncomplete : function(r, cudResults) {
+ var stat = cudResults[0];
if(stat)
dojo.byId('acq-po-view-name').innerHTML = value;
}
Modified: trunk/Open-ILS/web/js/ui/default/conify/global/config/circ_matrix_matchpoint.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/config/circ_matrix_matchpoint.js 2010-02-02 21:25:44 UTC (rev 15435)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/config/circ_matrix_matchpoint.js 2010-02-02 21:38:19 UTC (rev 15436)
@@ -144,8 +144,8 @@
if(group.isnew()) {
pcrud.create(group, {
- oncomplete : function(r) {
- var group = openils.Util.readResponse(r);
+ oncomplete : function(r, cudResults) {
+ var group = cudResults[0];
dojo.forEach(entries, function(e) { e.circ_mod_test(group.id()) } );
pcrud.create(entries, {
oncomplete : function() {
@@ -158,8 +158,7 @@
} else {
pcrud.update(group, {
- oncomplete : function(r) {
- openils.Util.readResponse(r);
+ oncomplete : function(r, cudResults) {
var newOnes = entries.filter(function(e) { return e.isnew() });
var delOnes = entries.filter(function(e) { return e.isdeleted() });
if(!delOnes.length && !newOnes.length) {
More information about the open-ils-commits
mailing list