Changeset 300


Ignore:
Timestamp:
Mar 22, 2010, 4:04:29 PM (9 years ago)
Author:
duh
Message:
  • it makes no sense using a regular expression mathing for a-zA-Z0-9 on a lowercase string; removed A-Z
  • moved minumum string length configuration before ontology autocomplete fires to the class variables
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/TemplateField.groovy

    r299 r300  
    3737         */
    3838        def String escapedName() {
    39                 return name.toLowerCase().replaceAll("([^a-zA-Z0-9])","_")
     39                return name.toLowerCase().replaceAll("([^a-z0-9])","_")
    4040        }
    4141
  • trunk/web-app/js/ontology-chooser.js

    r299 r300  
    77 * objects (just a self designed string using | for value
    88 * breaks and ~!~ for line breaks. Also, their implementation
    9  * conflicts with the table editor. Therefore, I this cleaner
    10  * implementation using jquery-ui's autocomplete functionality.
     9 * conflicts with the table editor. Therefore, I wrote this
     10 * cleaner implementation using jquery-ui's autocomplete
     11 * functionality.
    1112 *
    1213 * Usage:
     
    3435}
    3536OntologyChooser.prototype = {
    36     cache: [],
     37    minLength   : 2,    // minimum input length before launching Ajax request
     38    cache       : [],   // ontology cache
    3739
    3840    /**
     
    6567        // http://bioportal.bioontology.org/search/json_search/?q=musculus
    6668        inputElement.autocomplete({
    67             minLenght: 2,
     69            minLength: that.minLength,
    6870            search: function(event, ui) {
    6971                selected = false;
Note: See TracChangeset for help on using the changeset viewer.