Project

General

Profile

« Previous | Next » 

Revision 614de592

Added by Andreas Kohlbecker almost 8 years ago

#5887 bugfix for 'no rank limit' case

View differences:

modules/cdm_dataportal/js/jquery.cdm.taxonomic_children.js
134 134

  
135 135
      this.taxonUuid = this.$element.attr('data-cdm-taxon-uuid');
136 136
      this.rankLimitUuid = this.$element.attr('data-rank-limit-uuid');
137
      if(this.rankLimitUuid == '0'){
138
        // '0' is used in the cdm_dataportal settings as value for 'no rank limit'
139
        this.rankLimitUuid = undefined;
140
      }
137 141

  
138 142

  
139 143
      var nextLiElement = this.$element.parent('li').next();
......
329 333
            .replace('{classificationUuid}', this.options.classificationUuid)
330 334
            .replace('{rankUuid}', this.rankLimitUuid);
331 335
      } else {
332

  
336
        contentRequest =
337
          this.options.cdmWebappBaseUri
338
          + this.options.cdmWebappClassificationRootRequest
339
            .replace('{classificationUuid}', this.options.classificationUuid);
333 340
      }
334 341

  
335 342
      this.log("contentRequest: " + contentRequest);
......
397 404
    cdmWebappClassificationRootRequest: "portal/classification/{classificationUuid}/childNodes.json",
398 405
    proxyRequest: "cdm_api/proxy/{contentRequest}/{renderFunction}",
399 406
    renderFunction: "cdm_taxontree",
400
    viewPortRows: {min: 5, max: undefined}
407
    // viewPortRows: if max is 'undefined' the height will be adapted to the window viewport
408
    viewPortRows: {min: 3, max: undefined}
401 409
  };
402 410

  
403 411
})( jQuery, window, document );

Also available in: Unified diff