[open-ils-commits] r15437 - in trunk/Open-ILS/web/js/ui/default/conify/global/action: . survey (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Feb 2 16:56:26 EST 2010
Author: miker
Date: 2010-02-02 16:56:21 -0500 (Tue, 02 Feb 2010)
New Revision: 15437
Modified:
trunk/Open-ILS/web/js/ui/default/conify/global/action/survey.js
trunk/Open-ILS/web/js/ui/default/conify/global/action/survey/edit.js
Log:
fix survey JS for the new PermaCrud CUD semantics in the oncomplete handler
Modified: trunk/Open-ILS/web/js/ui/default/conify/global/action/survey/edit.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/action/survey/edit.js 2010-02-02 21:38:19 UTC (rev 15436)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/action/survey/edit.js 2010-02-02 21:56:21 UTC (rev 15437)
@@ -123,8 +123,8 @@
question.question(questionText);
question.isnew(true);
pcrud.create(question,
- {oncomplete: function(r)
- { var q = openils.Util.readResponse(r);
+ {oncomplete: function(r, qs)
+ { var q = qs[0];
questionRow.parentNode.removeChild(questionRow);
drawQuestionBody(q, null);
newQuestionBody(svyId);
Modified: trunk/Open-ILS/web/js/ui/default/conify/global/action/survey.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/action/survey.js 2010-02-02 21:38:19 UTC (rev 15436)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/action/survey.js 2010-02-02 21:56:21 UTC (rev 15437)
@@ -145,8 +145,8 @@
var pcrud = new openils.PermaCrud();
pcrud.create(sv,
{
- oncomplete: function(r) {
- var obj = openils.Util.readResponse(r);
+ oncomplete: function(r, objs) {
+ var obj = objs[0];
if(!obj) return '';
svGrid.store.newItem(asv.toStoreItem(obj));
svSurveyDialog.hide();
More information about the open-ils-commits
mailing list