{I" class:ETI"ProcessedAsset;FI"logical_path;TI"admin/pagefield.js;FI" pathname;TI"€/Users/brittanymartin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/trusty-cms-2.0.26/app/assets/javascripts/admin/pagefield.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+áµXI" length;Ti6I" digest;TI"%f8d8f23b2a809020e04126b91cabe891;FI" source;TI"6PageFields = { attachEvents: function() { $('#add_page_field_button').click(function(e){ e.preventDefault(); $.ajax({ method: 'post', url: '/admin/page_fields/', data: $('#new_page_field').serialize(), success: function(data, textStatus, jqXHR) { PageFields.updateFields(data); } }); }); $('.remove_field').click(function(e){ e.preventDefault(); var row = $(this).closest('tr'); row.find(".delete_input").val(true); row.find(".page_field_name").val(''); row.hide(); }); }, updateFields: function(element) { $('.fieldset tr:last').after(element); Popup.close(); $('#new_page_field').trigger('reset'); PageFields.attachEvents(); } }; $(function() { PageFields.attachEvents(); }); ;TI"dependency_digest;TI"%7461a634650d427b753bd13ca94db96a;FI"required_paths;T[I"€/Users/brittanymartin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/trusty-cms-2.0.26/app/assets/javascripts/admin/pagefield.js;FI"dependency_paths;T[{I" path;TI"€/Users/brittanymartin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/trusty-cms-2.0.26/app/assets/javascripts/admin/pagefield.js;F@I"2017-02-28T15:43:45-05:00;T@I"%9df978f1a5a78d1196feda7a97af4fd3;FI" _version;TI"%5dbb392182285b4042e11c847d2199ba;F