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