Project

General

Profile

« Previous | Next » 

Revision 936c6844

Added by Andreas Kohlbecker over 2 years ago

diabling WoRMS due to unresolved potential copyright issues

View differences:

modules/cdm_dataportal/js/utis-client/utis-client.js
105 105
      var checkboxesArray = [];
106 106
      $.each(Object.keys(plugin.options.providers), function (index, key) {
107 107
        var checkbox_id = 'checkbox_' + key;
108
        var disabled = key == 'worms';
108 109
        var checkbox =   $("<input/>",
109 110
          {
110 111
            type: 'checkbox',
111 112
            name: 'provider',
112 113
            checked: index == 0 ? 'checked' : '',
113 114
            value: key,
114
            id:  checkbox_id
115
            id:  checkbox_id,
116
            disabled: disabled
115 117
          }
116 118
        );
117
        var label = $('<label for="' + checkbox_id + '" style="display: inline-block; vertical-align: top;">&nbsp;' +  plugin.options.providers[key] + '</label><br/>');
119
        var label = $('<label for="' + checkbox_id + '" style="display: inline-block; vertical-align: top; ' + (disabled ? 'color:#bbbbbb;': '') + '">&nbsp;' +  plugin.options.providers[key] + '</label><br/>');
118 120
        // label.append(checkbox);
119 121
        checkBoxesDiv.append(checkbox).append(label);
122
        if(disabled){
123
          checkBoxesDiv.append($('<div style="font-size:small; color:#bbbbbb;">' + plugin.options.providers[key] + ' disabled due to unresolved potential copyright issues.</div>'))
124
        }
120 125

  
121 126
        checkboxesArray.push(checkbox);
122 127
      });

Also available in: Unified diff