Sha256: efe39c1a979713d661cc033b7adee810b9bfaa34b8b056b904c1a22fe50ff7b0

Contents?: true

Size: 1.7 KB

Versions: 4

Compression:

Stored size: 1.7 KB

Contents

{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

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
trusty-clipped-extension-3.0.0 spec/dummy/tmp/cache/assets/test/sprockets/4aeb3d09880eb6ae92f5df6a2e999921
trusty-clipped-extension-3.0.0 spec/dummy/tmp/cache/assets/test/sprockets/e87d94ffc021f03839774c36ce6fe00d
trusty-clipped-extension-2.0.15 spec/dummy/tmp/cache/assets/test/sprockets/4aeb3d09880eb6ae92f5df6a2e999921
trusty-clipped-extension-2.0.15 spec/dummy/tmp/cache/assets/test/sprockets/e87d94ffc021f03839774c36ce6fe00d