Sha256: 488841cf1f4e80d9fa77d874394f8e8eae60cd2fd2bbe3c13bfa1adbc6fdc812

Contents?: true

Size: 1.9 KB

Versions: 18

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.16/app/assets/javascripts/admin/preview.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+v.ĪVI"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.16/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.16/app/assets/javascripts/admin/preview.js;FI"
mtime;TI"2016-02-25T11:40:22-05:00;TI"digest;TI"%8ea2c56036e246927949195d9459a1da;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/447ae292854503654d4e87856940f972
trusty-clipped-extension-3.0.0 spec/dummy/tmp/cache/assets/test/sprockets/39f7dd0bc6b42c931ca31188da4635a1
trusty-clipped-extension-2.0.15 spec/dummy/tmp/cache/assets/test/sprockets/447ae292854503654d4e87856940f972
trusty-clipped-extension-2.0.15 spec/dummy/tmp/cache/assets/test/sprockets/39f7dd0bc6b42c931ca31188da4635a1
trusty-clipped-extension-2.0.14 spec/dummy/tmp/cache/assets/test/sprockets/39f7dd0bc6b42c931ca31188da4635a1
trusty-clipped-extension-2.0.14 spec/dummy/tmp/cache/assets/test/sprockets/447ae292854503654d4e87856940f972
trusty-clipped-extension-2.0.12 spec/dummy/tmp/cache/assets/test/sprockets/39f7dd0bc6b42c931ca31188da4635a1
trusty-clipped-extension-2.0.12 spec/dummy/tmp/cache/assets/test/sprockets/447ae292854503654d4e87856940f972
trusty-clipped-extension-2.0.10 spec/dummy/tmp/cache/assets/test/sprockets/39f7dd0bc6b42c931ca31188da4635a1
trusty-clipped-extension-2.0.10 spec/dummy/tmp/cache/assets/test/sprockets/447ae292854503654d4e87856940f972
trusty-clipped-extension-2.0.9 spec/dummy/tmp/cache/assets/test/sprockets/39f7dd0bc6b42c931ca31188da4635a1
trusty-clipped-extension-2.0.9 spec/dummy/tmp/cache/assets/test/sprockets/447ae292854503654d4e87856940f972
trusty-clipped-extension-2.0.8 spec/dummy/tmp/cache/assets/test/sprockets/39f7dd0bc6b42c931ca31188da4635a1
trusty-clipped-extension-2.0.8 spec/dummy/tmp/cache/assets/test/sprockets/447ae292854503654d4e87856940f972
trusty-clipped-extension-2.0.7 spec/dummy/tmp/cache/assets/test/sprockets/39f7dd0bc6b42c931ca31188da4635a1
trusty-clipped-extension-2.0.7 spec/dummy/tmp/cache/assets/test/sprockets/447ae292854503654d4e87856940f972
trusty-clipped-extension-2.0.6 spec/dummy/tmp/cache/assets/test/sprockets/447ae292854503654d4e87856940f972
trusty-clipped-extension-2.0.6 spec/dummy/tmp/cache/assets/test/sprockets/39f7dd0bc6b42c931ca31188da4635a1