Sha256: 0c62f7251b9a8e4339dd73a922483fca1810b4b785f816331b19c827026e0751
Contents?: true
Size: 504 Bytes
Versions: 3
Compression:
Stored size: 504 Bytes
Contents
// Place your application-specific JavaScript functions and classes here // This file is automatically included by javascript_include_tag :defaults function remove_attrlistvalues(link) { $(link).prev("input[type=hidden]").val("1"); $(link).closest(".attrlistparam").hide(); } function add_attrlistvalues(link, association, content) { var new_id = new Date().getTime(); var regexp = new RegExp("new_" + association, "g"); $(link).parent().before(content.replace(regexp, new_id)); }
Version data entries
3 entries across 3 versions & 1 rubygems