Sha256: 21e348114f6af8b4f242c04d40136c382042bb6e1cf4c5db4589df0b75d35496

Contents?: true

Size: 1.98 KB

Versions: 18

Compression:

Stored size: 1.98 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"admin/popup.js;FI"
pathname;TI"l/Users/brittanymartin/.rvm/gems/ruby-2.1.5/gems/trusty-cms-2.0.16/app/assets/javascripts/admin/popup.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+v.ÏVI"length;Ti’I"digest;TI"%6eb5152a6cf9e0d57e3c2679339dc8a7;FI"source;TI"’(function(Popup, $) {
  Popup.setup = function(link) {
    $(link).on('click', function(event){
      event.preventDefault();
      var href = $(link).attr('href');
      var match = href.match(/\#(.+)$/);
      Popup.show(match[1]);
    });
  }

  Popup.show = function(popupId) {
    $('#popups').append($('#popup_window .content .popup').detach());
    $('#popup_window .content').append($('#' + popupId).detach());

    var popup_window = $('#popup_window').detach();
    $('body').prepend(popup_window);

    $('#popup_window').show();
    $('#popup_window #' + popupId).show();

    var l = parseInt($(window).scrollLeft() + ($(window).width() - $('#popup_window').width()) / 2) + 'px';
    var t = parseInt($(window).scrollTop() + ($(window).height() - $('#popup_window').height()) / 2.2) + 'px';

    $("#popup_window").css('left', l);
    $("#popup_window").css('top', t);
    $("#popup_window form input[type='text']:first").focus();
  }

  Popup.close = function() {
    $('#popup_window').hide();
    $('div.popup').hide();
  }

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

$(function () {
  $('a.popup').each(function(){
    Popup.setup(this);
  });
});
;TI"dependency_digest;TI"%42fd022f24cf8bbace0afd1f82b28feb;FI"required_paths;T[I"l/Users/brittanymartin/.rvm/gems/ruby-2.1.5/gems/trusty-cms-2.0.16/app/assets/javascripts/admin/popup.js;FI"dependency_paths;T[{I"	path;TI"l/Users/brittanymartin/.rvm/gems/ruby-2.1.5/gems/trusty-cms-2.0.16/app/assets/javascripts/admin/popup.js;FI"
mtime;TI"2016-02-25T11:40:22-05:00;TI"digest;TI"%6eb5152a6cf9e0d57e3c2679339dc8a7;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/882d1d7b0b546831d6a9ca6df2dcfb04
trusty-clipped-extension-3.0.0 spec/dummy/tmp/cache/assets/test/sprockets/72f589ee7b40cd8243750fa3392c8cc1
trusty-clipped-extension-2.0.15 spec/dummy/tmp/cache/assets/test/sprockets/882d1d7b0b546831d6a9ca6df2dcfb04
trusty-clipped-extension-2.0.15 spec/dummy/tmp/cache/assets/test/sprockets/72f589ee7b40cd8243750fa3392c8cc1
trusty-clipped-extension-2.0.14 spec/dummy/tmp/cache/assets/test/sprockets/72f589ee7b40cd8243750fa3392c8cc1
trusty-clipped-extension-2.0.14 spec/dummy/tmp/cache/assets/test/sprockets/882d1d7b0b546831d6a9ca6df2dcfb04
trusty-clipped-extension-2.0.12 spec/dummy/tmp/cache/assets/test/sprockets/72f589ee7b40cd8243750fa3392c8cc1
trusty-clipped-extension-2.0.12 spec/dummy/tmp/cache/assets/test/sprockets/882d1d7b0b546831d6a9ca6df2dcfb04
trusty-clipped-extension-2.0.10 spec/dummy/tmp/cache/assets/test/sprockets/72f589ee7b40cd8243750fa3392c8cc1
trusty-clipped-extension-2.0.10 spec/dummy/tmp/cache/assets/test/sprockets/882d1d7b0b546831d6a9ca6df2dcfb04
trusty-clipped-extension-2.0.9 spec/dummy/tmp/cache/assets/test/sprockets/72f589ee7b40cd8243750fa3392c8cc1
trusty-clipped-extension-2.0.9 spec/dummy/tmp/cache/assets/test/sprockets/882d1d7b0b546831d6a9ca6df2dcfb04
trusty-clipped-extension-2.0.8 spec/dummy/tmp/cache/assets/test/sprockets/72f589ee7b40cd8243750fa3392c8cc1
trusty-clipped-extension-2.0.8 spec/dummy/tmp/cache/assets/test/sprockets/882d1d7b0b546831d6a9ca6df2dcfb04
trusty-clipped-extension-2.0.7 spec/dummy/tmp/cache/assets/test/sprockets/72f589ee7b40cd8243750fa3392c8cc1
trusty-clipped-extension-2.0.7 spec/dummy/tmp/cache/assets/test/sprockets/882d1d7b0b546831d6a9ca6df2dcfb04
trusty-clipped-extension-2.0.6 spec/dummy/tmp/cache/assets/test/sprockets/882d1d7b0b546831d6a9ca6df2dcfb04
trusty-clipped-extension-2.0.6 spec/dummy/tmp/cache/assets/test/sprockets/72f589ee7b40cd8243750fa3392c8cc1