Sha256: 2589c759466438794de17d173442110b0416e89d4656e61a423f603fde5c19c6

Contents?: true

Size: 1.65 KB

Versions: 18

Compression:

Stored size: 1.65 KB

Contents

{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.16/app/assets/javascripts/admin/pagefield.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+v.ĪVI"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.16/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.16/app/assets/javascripts/admin/pagefield.js;FI"
mtime;TI"2016-02-25T11:40:22-05:00;TI"digest;TI"%9df978f1a5a78d1196feda7a97af4fd3;FI"
_version;TI"%5dbb392182285b4042e11c847d2199ba;F

Version data entries

18 entries across 9 versions & 1 rubygems

Version Path
trusty-clipped-extension-3.0.0 spec/dummy/tmp/cache/assets/test/sprockets/912e65d7006516a4616481c3921f7bb2
trusty-clipped-extension-3.0.0 spec/dummy/tmp/cache/assets/test/sprockets/04a667e17720e1d643d8e27a8fb57b30
trusty-clipped-extension-2.0.15 spec/dummy/tmp/cache/assets/test/sprockets/912e65d7006516a4616481c3921f7bb2
trusty-clipped-extension-2.0.15 spec/dummy/tmp/cache/assets/test/sprockets/04a667e17720e1d643d8e27a8fb57b30
trusty-clipped-extension-2.0.14 spec/dummy/tmp/cache/assets/test/sprockets/04a667e17720e1d643d8e27a8fb57b30
trusty-clipped-extension-2.0.14 spec/dummy/tmp/cache/assets/test/sprockets/912e65d7006516a4616481c3921f7bb2
trusty-clipped-extension-2.0.12 spec/dummy/tmp/cache/assets/test/sprockets/04a667e17720e1d643d8e27a8fb57b30
trusty-clipped-extension-2.0.12 spec/dummy/tmp/cache/assets/test/sprockets/912e65d7006516a4616481c3921f7bb2
trusty-clipped-extension-2.0.10 spec/dummy/tmp/cache/assets/test/sprockets/04a667e17720e1d643d8e27a8fb57b30
trusty-clipped-extension-2.0.10 spec/dummy/tmp/cache/assets/test/sprockets/912e65d7006516a4616481c3921f7bb2
trusty-clipped-extension-2.0.9 spec/dummy/tmp/cache/assets/test/sprockets/04a667e17720e1d643d8e27a8fb57b30
trusty-clipped-extension-2.0.9 spec/dummy/tmp/cache/assets/test/sprockets/912e65d7006516a4616481c3921f7bb2
trusty-clipped-extension-2.0.8 spec/dummy/tmp/cache/assets/test/sprockets/04a667e17720e1d643d8e27a8fb57b30
trusty-clipped-extension-2.0.8 spec/dummy/tmp/cache/assets/test/sprockets/912e65d7006516a4616481c3921f7bb2
trusty-clipped-extension-2.0.7 spec/dummy/tmp/cache/assets/test/sprockets/04a667e17720e1d643d8e27a8fb57b30
trusty-clipped-extension-2.0.7 spec/dummy/tmp/cache/assets/test/sprockets/912e65d7006516a4616481c3921f7bb2
trusty-clipped-extension-2.0.6 spec/dummy/tmp/cache/assets/test/sprockets/912e65d7006516a4616481c3921f7bb2
trusty-clipped-extension-2.0.6 spec/dummy/tmp/cache/assets/test/sprockets/04a667e17720e1d643d8e27a8fb57b30