[open-ils-commits] r13156 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed May 13 16:29:58 EDT 2009
Author: erickson
Date: 2009-05-13 16:29:54 -0400 (Wed, 13 May 2009)
New Revision: 13156
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
Log:
call onPostCreate before we insert the new item into the store
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js 2009-05-13 18:51:20 UTC (rev 13155)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js 2009-05-13 20:29:54 UTC (rev 13156)
@@ -285,10 +285,10 @@
disableWidgetTest : this.disableWidgetTest,
onPostSubmit : function(r) {
var fmObject = openils.Util.readResponse(r);
+ if(grid.onPostCreate)
+ grid.onPostCreate(fmObject);
if(fmObject)
grid.store.newItem(fmObject.toStoreItem());
- if(grid.onPostCreate)
- grid.onPostCreate(fmObject);
setTimeout(function(){
try {
grid.selection.select(grid.rowCount-1);
More information about the open-ils-commits
mailing list