Sha256: 4cd2c73e09e68977c680754b74577955e13139fd28ed859ffb07882252ae2051

Contents?: true

Size: 1.37 KB

Versions: 12

Compression:

Stored size: 1.37 KB

Contents

// rules.js.coffee
(function(){decko.slot.ready(function(t){return t.find("._setting-filter").each(function(){return decko.filterRulesByCategory($(this).closest(".card-slot"),$(this).find("input._setting-category:checked").attr("id"))})}),$.extend(decko,{filterRulesByCategory:function(t,i){return $(t).find("._setting-list ._setting-group").each(function(){var t,n,e;return e=(t=$(this)).find("._rule-item"),n=0,e.each(function(){var t,e;return e=(t=$(this)).parent().is("li")?t.parent():t,t.hasClass("_category-"+i)?e.show():(e.hide(),n+=1)}),n===e.length?t.hide():(t.show(),t.find("._count").html(e.length-n))})}}),$(window).ready(function(){return $("body").on("click",".perm-vals input",function(){return $(this).slot().find("#inherit").attr("checked",!1)}),$("body").on("click",".perm-editor #inherit",function(){var t;return(t=$(this).slot()).find(".perm-group input:checked").attr("checked",!1),t.find(".perm-indiv input").val("")}),$("body").on("click","._rule-submit-button",function(){var t,i;return(t=(i=$(this).closest("form")).find("._set-editor input:checked")).val()?!t.attr("warning")||confirm(t.attr("warning")):(i.find("._set-editor").addClass("warning"),$(this).notify("To what Set does this Rule apply?"),!1)}),$("body").on("click","input._setting-category",function(){var t;return t=$(this).attr("id"),decko.filterRulesByCategory($(this).closest(".card-slot"),t)})})}).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_asset_output/file.js
card-mod-rules-0.18.0 data/files/mod_rules_script_asset_output/file.js
card-mod-rules-0.17.0 data/files/mod_rules_script_asset_output/file.js
card-mod-rules-0.16.0 data/files/mod_rules_script_asset_output/file.js
card-mod-rules-0.15.6 data/files/mod_rules_script_asset_output/file.js
card-mod-rules-0.15.5 data/files/mod_rules_script_asset_output/file.js
card-mod-rules-0.15.4 data/files/mod_rules_script_asset_output/file.js
card-mod-rules-0.15.3 data/files/mod_rules_script_asset_output/file.js
card-mod-rules-0.15.2.pre1 data/files/mod_rules_script_asset_output/file.js
card-mod-rules-0.15.1.1 data/files/mod_rules_script_asset_output/file.js
card-mod-rules-0.15.1 data/files/mod_rules_script_asset_output/file.js
card-mod-rules-0.15.0 data/files/mod_rules_script_asset_output/file.js