{I" class:ETI"ProcessedAsset;FI"logical_path;TI"admin/pagefield.js;FI" pathname;TI"p/Users/brittanymartin/.rvm/gems/ruby-2.1.5/gems/trusty-cms-2.0.20/app/assets/javascripts/admin/pagefield.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+ €WI" 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"p/Users/brittanymartin/.rvm/gems/ruby-2.1.5/gems/trusty-cms-2.0.20/app/assets/javascripts/admin/pagefield.js;FI"dependency_paths;T[{I" path;TI"p/Users/brittanymartin/.rvm/gems/ruby-2.1.5/gems/trusty-cms-2.0.20/app/assets/javascripts/admin/pagefield.js;FI" mtime;TI"2016-04-04T10:54:05-04:00;TI" digest;TI"%9df978f1a5a78d1196feda7a97af4fd3;FI" _version;TI"%5dbb392182285b4042e11c847d2199ba;F