Sha256: 152decd9de8911f901d2a2260e130daafe21167a79c5a8f371d7cb165b7e0edd

Contents?: true

Size: 412 Bytes

Versions: 6

Compression:

Stored size: 412 Bytes

Contents

function toggleVerifySSL () {
  var urlField = $('#docker_registry_url'),
      verifySSLField = $('#docker_registry_verify_ssl'),
      verifySSLFormGroup = verifySSLField.closest('.form-group');

  if (/^https/.test(urlField.val())) {
    verifySSLFormGroup.show();
  } else {
    verifySSLFormGroup.hide();
  };
};

$(document).ready(function () {
  $('#docker_registry_url').on('change', toggleVerifySSL)
})

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_docker-5.0.0 app/assets/javascripts/foreman_docker/create_registry.js
foreman_docker-4.1.1 app/assets/javascripts/foreman_docker/create_registry.js
foreman_docker-4.1.0 app/assets/javascripts/foreman_docker/create_registry.js
foreman_docker-4.0.0 app/assets/javascripts/foreman_docker/create_registry.js
foreman_docker-3.2.1 app/assets/javascripts/foreman_docker/create_registry.js
foreman_docker-3.2.0 app/assets/javascripts/foreman_docker/create_registry.js