Sha256: a6bec5496bacff39f5ecebcac4c2a7c518165bb4357e65ba8470f5be85045104

Contents?: true

Size: 982 Bytes

Versions: 12

Compression:

Stored size: 982 Bytes

Contents

// script_rules.js.coffee
(function() {
  $(window).ready(function() {
    $('body').on('click', '.perm-vals input', function() {
      return $(this).slot().find('#inherit').attr('checked', false);
    });
    $('body').on('click', '.perm-editor #inherit', function() {
      var slot;
      slot = $(this).slot();
      slot.find('.perm-group input:checked').attr('checked', false);
      return slot.find('.perm-indiv input').val('');
    });
    return $('body').on('click', '._rule-submit-button', function() {
      var checked, f;
      f = $(this).closest('form');
      checked = f.find('.set-editor input:checked');
      if (checked.val()) {
        if (checked.attr('warning')) {
          return confirm(checked.attr('warning'));
        } else {
          return true;
        }
      } else {
        f.find('.set-editor').addClass('attention');
        $(this).notify('To what Set does this Rule apply?');
        return false;
      }
    });
  });

}).call(this);

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
card-mod-rules-0.18.1 data/files/mod_rules_script_local_machine_output/file.js
card-mod-rules-0.18.0 data/files/mod_rules_script_local_machine_output/file.js
card-mod-rules-0.17.0 data/files/mod_rules_script_local_machine_output/file.js
card-mod-rules-0.16.0 data/files/mod_rules_script_local_machine_output/file.js
card-mod-rules-0.15.6 data/files/mod_rules_script_local_machine_output/file.js
card-mod-rules-0.15.5 data/files/mod_rules_script_local_machine_output/file.js
card-mod-rules-0.15.4 data/files/mod_rules_script_local_machine_output/file.js
card-mod-rules-0.15.3 data/files/mod_rules_script_local_machine_output/file.js
card-mod-rules-0.15.2.pre1 data/files/mod_rules_script_local_machine_output/file.js
card-mod-rules-0.15.1.1 data/files/mod_rules_script_local_machine_output/file.js
card-mod-rules-0.15.1 data/files/mod_rules_script_local_machine_output/file.js
card-mod-rules-0.15.0 data/files/mod_rules_script_local_machine_output/file.js