Sha256: 44716be16d5d0d7480a99c68f416a5d70030c5ca20d30f6a2307d03acb4a7145

Contents?: true

Size: 1.94 KB

Versions: 4

Compression:

Stored size: 1.94 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"admin/preview.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/preview.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+áµXI"length;Ti6I"digest;TI"%8ea2c56036e246927949195d9459a1da;FI"source;TI"6(function(Preview, $) {
  Preview.showPreview = function(form){
    var oldTarget = form.target;
    var oldAction = form.action;

    var $previewer = $('#preview_panel');
    var $preview_tools = $previewer.find('.preview_tools');
    var $frame = $('#page-preview');

    $(window).scrollTop(0);
    $previewer.show();
    $preview_tools.css('opacity', 1);
    $('body').addClass('clipped');
    form.target = $frame.attr('id');
    form.action = relative_url_root + '/admin/preview';
    form.submit();

    form.target = oldTarget;
    form.action = oldAction;
  }

}(window.Preview = window.Preview || {}, jQuery));

$(function () {
  $('#show-preview').on('click', function(event){
    event.preventDefault();
    Preview.showPreview(this.form);
  });

  $('.preview_tools a.cancel').on('click', function(event){
    event.preventDefault();
    $('#preview_panel').hide();
    $('body').removeClass('clipped');
    $('#page-preview').attr('src', '');
  });

  $('iframe').on('load', function(event){
    $('#preview_panel .preview_tools').css('opacity', null);
  });
});
;TI"dependency_digest;TI"%db16ec7e65b8d3abc13f15e523e53bf2;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/preview.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/preview.js;F@I"2017-02-28T15:43:45-05:00;T@I"%8ea2c56036e246927949195d9459a1da;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/635f0c022e92410fdee4d5b0849d4a6b
trusty-clipped-extension-3.0.0 spec/dummy/tmp/cache/assets/test/sprockets/de240142671687d2a34d788f916896cd
trusty-clipped-extension-2.0.15 spec/dummy/tmp/cache/assets/test/sprockets/635f0c022e92410fdee4d5b0849d4a6b
trusty-clipped-extension-2.0.15 spec/dummy/tmp/cache/assets/test/sprockets/de240142671687d2a34d788f916896cd