Fix recursion error shift-tabbing in metadata pane on item types with no creators

This commit is contained in:
Dan Stillman 2010-01-18 06:51:39 +00:00
parent 59e21310a3
commit bd5ef678f5

View file

@ -410,7 +410,7 @@
continue; continue;
} }
// Start tabindex at 1000 after creators // Start tabindex at 1001 after creators
var tabindex = fieldIsClickable var tabindex = fieldIsClickable
? (i>0 ? this._tabIndexMinFields + i : 1) : 0; ? (i>0 ? this._tabIndexMinFields + i : 1) : 0;
this._tabIndexMaxInfoFields = Math.max(this._tabIndexMaxInfoFields, tabindex); this._tabIndexMaxInfoFields = Math.max(this._tabIndexMaxInfoFields, tabindex);
@ -2201,11 +2201,17 @@
return false; return false;
case this._tabIndexMinCreators: case this._tabIndexMinCreators:
var nextIndex = 1; var nextIndex = 1; // Title field
break; break;
case this._tabIndexMinFields: case this._tabIndexMinFields:
var nextIndex = this._tabIndexMaxCreators; // No creators
if (this._tabIndexMaxCreators == 0) {
var nextIndex = 1; // Title field
}
else {
var nextIndex = this._tabIndexMaxCreators;
}
break; break;
default: default: