Changeset 4158


Ignore:
Timestamp:
12/06/13 14:27:29 (10 years ago)
Author:
andmor
Message:

Fixed bug when selecting schema index=10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/SCHEMAcat/trunk/urn.org.isocat.schemacat.site/site/scripts/controllers.js

    r4151 r4158  
    187187            //check if schemaIndex is out of range (can happen e.g. due to manual input)
    188188            //reload on schema index 0 if so
    189             if (isNaN(parseInt(index, 10)) || index < 0 || index > $scope.schemasList.length) {
     189            if (isNaN(parseInt(index, 10)) || index < 0 || index > $scope.schemasList.length - 1) {
    190190                $scope.selectedSchemaIndex = undefined;
    191191                $location.search({
Note: See TracChangeset for help on using the changeset viewer.