Changeset 31122

Show
Ignore:
Timestamp:
17.11.2016 14:40:15 (3 years ago)
Author:
kjdon
Message:

array.includes is not available in IE, nad only in later firefox etc. so I have changed this to use jquery funciton instead

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/documentmaker_scripts_util.js

    r31055 r31122  
    829829            var textValue = $("<textarea>", {"class": "metaTableCellArea "+ clean_name});  
    830830         
    831          
    832             if (autocompleteMetadata.includes(name)) { 
     831        if (jQuery.inArray(name, autocompleteMetadata) != -1) { 
    833832            var source_obje = window[clean_name +"_values"]; 
    834833            if (source_obje) {