Sha256: 3c08cd9c65d1908428e03fdf3ba67697a76cb45fa89b5935b986304a37d53e42

Contents?: true

Size: 1.9 KB

Versions: 8

Compression:

Stored size: 1.9 KB

Contents

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

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
trusty-clipped-extension-3.0.0 spec/dummy/tmp/cache/assets/test/sprockets/9497e0db5fe0b57129e37df3696a4ac8
trusty-clipped-extension-3.0.0 spec/dummy/tmp/cache/assets/test/sprockets/d8dcede44c2ba6ad797a751c952adbd1
trusty-clipped-extension-2.0.15 spec/dummy/tmp/cache/assets/test/sprockets/9497e0db5fe0b57129e37df3696a4ac8
trusty-clipped-extension-2.0.15 spec/dummy/tmp/cache/assets/test/sprockets/d8dcede44c2ba6ad797a751c952adbd1
trusty-clipped-extension-2.0.14 spec/dummy/tmp/cache/assets/test/sprockets/9497e0db5fe0b57129e37df3696a4ac8
trusty-clipped-extension-2.0.14 spec/dummy/tmp/cache/assets/test/sprockets/d8dcede44c2ba6ad797a751c952adbd1
trusty-clipped-extension-2.0.12 spec/dummy/tmp/cache/assets/test/sprockets/9497e0db5fe0b57129e37df3696a4ac8
trusty-clipped-extension-2.0.12 spec/dummy/tmp/cache/assets/test/sprockets/d8dcede44c2ba6ad797a751c952adbd1