not sure why views[1] was working before, but it's not now
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 9 Feb 2009 17:56:49 +0000 (17:56 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 9 Feb 2009 17:56:49 +0000 (17:56 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12118 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/widget/AutoGrid.js

index 48b3c9a..4e715f5 100644 (file)
@@ -86,11 +86,11 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) {
                         }
                         dialog.destroy();
                         setTimeout(function(){
-                            grid.views.views[1].getCellNode(rowIndex, 0).focus();},200);
+                            grid.views.views[0].getCellNode(rowIndex, 0).focus();},200);
                     },
                     onCancel : function() {
                         setTimeout(function(){
-                            grid.views.views[1].getCellNode(rowIndex, 0).focus();},200);
+                            grid.views.views[0].getCellNode(rowIndex, 0).focus();},200);
                     }
                 });
                 dialog.editPane.fieldOrder = this.fieldOrder;
@@ -110,7 +110,7 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) {
                         dialog.destroy();
                         setTimeout(function(){
                             grid.selection.select(grid.rowCount-1);
-                            grid.views.views[1].getCellNode(grid.rowCount-1, 1).focus();
+                            grid.views.views[0].getCellNode(grid.rowCount-1, 1).focus();
                         },200);
                     },
                 });