Sha256: f93f5f63f7ba8ecbcecba2256e67b3be80e34c479e06f90ceb36831901cbf634

Contents?: true

Size: 379 Bytes

Versions: 18

Compression:

Stored size: 379 Bytes

Contents

  function remove_fields(link) {
    $(link).prev("input[type=hidden]").val("1");
    $(link).closest(".fields").hide();
  }

  function add_fields(link, association, content) {
    var new_id = new Date().getTime();
    var regexp = new RegExp("new_" + association, "g")
    $(link).parents('.control-group').before(content.replace(regexp, new_id));
    bindMemberTickets();
  }

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
artfully_ose-1.3.0.pre4 app/assets/javascripts/custom/prices.js
artfully_ose-1.3.0.pre3 app/assets/javascripts/custom/prices.js
artfully_ose-1.3.0.pre2 app/assets/javascripts/custom/prices.js
artfully_ose-1.3.0.pre1 app/assets/javascripts/custom/prices.js
artfully_ose-1.2.0 app/assets/javascripts/custom/prices.js
artfully_ose-1.2.0.beta.1 app/assets/javascripts/custom/prices.js
artfully_ose-1.2.0.alpha.2 app/assets/javascripts/custom/prices.js
artfully_ose-1.2.0.alpha.1 app/assets/javascripts/custom/prices.js
artfully_ose-1.2.0.pre.27 app/assets/javascripts/custom/prices.js
artfully_ose-1.2.0.pre.26 app/assets/javascripts/custom/prices.js
artfully_ose-1.2.0.pre.24 app/assets/javascripts/custom/prices.js
artfully_ose-1.2.0.pre.23 app/assets/javascripts/custom/prices.js
artfully_ose-1.2.0.pre.21 app/assets/javascripts/custom/prices.js
artfully_ose-1.2.0.pre.20 app/assets/javascripts/custom/prices.js
artfully_ose-1.2.0.pre.19 app/assets/javascripts/custom/prices.js
artfully_ose-1.2.0.pre.18 app/assets/javascripts/custom/prices.js
artfully_ose-1.2.0.pre.17 app/assets/javascripts/custom/prices.js
artfully_ose-1.2.0.pre.16 app/assets/javascripts/custom/prices.js