Sha256: 3d51c4cb648e32f7c16e5f3bdcbea3e6aecda8057b9af023648e6ad3c0fce913

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

I"ò(function() {
  var auth_types, authfor_type;

  auth_types = $('#authority_authorizable_type').find("option:selected").val();

  $('#authority_authorizable_id optgroup').find('option').addBack().hide();

  $("#authority_authorizable_id optgroup[label=\"" + auth_types + "\"]").find('option').addBack().show();

  $(document).on('click', '#authority_authorizable_type', function() {
    var type;
    type = $(this).find("option:selected").val();
    $('#authority_authorizable_id optgroup').find('option').addBack().hide();
    return $("#authority_authorizable_id optgroup[label=\"" + type + "\"]").find('option').addBack().show();
  });

  authfor_type = $('#authority_authorized_for_type').find("option:selected").val();

  $('#authority_authorized_for_id optgroup').find('option').addBack().hide();

  $("#authority_authorized_for_id optgroup[label=\"" + authfor_type + "\"]").find('option').addBack().show();

  $(document).on('click', '#authority_authorized_for_type', function() {
    var type;
    type = $(this).find("option:selected").val();
    $('#authority_authorized_for_id optgroup').find('option').addBack().hide();
    return $("#authority_authorized_for_id optgroup[label=\"" + type + "\"]").find('option').addBack().show();
  });

}).call(this);
:ET

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wobauth-3.4.4 test/dummy/tmp/cache/assets/sprockets/v3.0/K5/K5UnItDV1g9ixIoFloUxCNirxL5UFrOT0jz1vKy5shc.cache