Sha256: 5ce46cdba6380858e4d415612b2e123e74b97ec5f5fda3be262c908e9742013a

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1356239722.149733:@value"~{I"
class:EFI"BundledAsset;FI"logical_path;FI"rules/active_admin.js;FI"
pathname;F"F/Users/anthony/rules/lib/assets/javascripts/rules/active_admin.jsI"content_type;FI"application/javascript;FI"
mtime;FI"2012-11-08T10:53:38-08:00;FI"length;Fi·I"digest;F"%6a7e54904853aad77440401c1f22eb7eI"source;FI"·$(function() {
  $('.rules_rule_set select[name*="[lhs_parameter_key]"]').on('change', function(ev) {
    var $rawInput;
    var selectedType;

    $rawInput = $(this).parent('li').siblings('[id*="rhs_parameter_raw_input"]').find('input');
    selectedType = $(this).find(':selected').data('type');

    $rawInput.get(0).type = selectedType;
  });

    $('.rules_rule_set select[name*="[evaluator_key]"]').on('change', function(ev) {
    var $rhsInputs;
    var requiresRHS;

    $rawInputs = $(this).parent('li').siblings('[id*="rhs_parameter"]').find('input, select');
    requiresRHS = $(this).find(':selected').data('requires-rhs');

    $rawInputs.prop('disabled', !requiresRHS);
  });
});
;FI"required_assets_digest;F"%e85756911eee5abc82095e8970f963f2I"
_version;F"%9f3b95dd7ea3030dc35985c0a8020862

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rules-0.1.2 spec/dummy/tmp/cache/assets/CDD/1C0/sprockets%2F135007aba963ec0e42884493ce7ac647