Sha256: 00666a6b936f7a2d4a9ca638bdb03cfde556d842a91448c9454fcfe99d3bea9b

Contents?: true

Size: 587 Bytes

Versions: 8

Compression:

Stored size: 587 Bytes

Contents

$(document).ready(function() { 
  disableInspectorCheckbox();
  $("#all_inspectors").click(function(){
    disableInspectorCheckbox();
    $("#inspector-form").submit();
  });
  $("#inspector-form").submit( function() {} );
  $("#inspector").change(function() {
    $("#inspector-form").trigger( 'submit' );
  });

  $("#case_reference").example_text({example_text: 'e.g. BL123456'});
});

function disableInspectorCheckbox() {
  if ($("#all_inspectors:checked").length > 0) {
    $("#inspector").attr("disabled", "disabled");
  } else {
    $("#inspector").removeAttr("disabled");
  }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
head_start-0.1.7 vendor/assets/javascripts/scorpion/jobs_admin.js
head_start-0.1.6 vendor/assets/javascripts/scorpion/jobs_admin.js
head_start-0.1.5 vendor/assets/javascripts/scorpion/jobs_admin.js
head_start-0.1.4 vendor/assets/javascripts/scorpion/jobs_admin.js
head_start-0.1.3 vendor/assets/javascripts/scorpion/jobs_admin.js
head_start-0.1.2 vendor/assets/javascripts/scorpion/jobs_admin.js
head_start-0.1.1 vendor/assets/javascripts/scorpion/jobs_admin.js
head_start-0.1.0 vendor/assets/javascripts/scorpion/jobs_admin.js