Sha256: 02e6ce5e63a3f90c4aeb1becf3445d41db655e187a6862927d6f4b45a0f1c042
Contents?: true
Size: 1.98 KB
Versions: 8
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.20/app/assets/javascripts/admin/popup.js; FI"content_type; TI"application/javascript; TI" mtime; Tl+ €WI"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.20/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.20/app/assets/javascripts/admin/popup.js; FI" mtime; TI"2016-04-04T10:54:05-04:00; TI"digest; TI"%6eb5152a6cf9e0d57e3c2679339dc8a7; FI" _version; TI"%5dbb392182285b4042e11c847d2199ba; F
Version data entries
8 entries across 4 versions & 1 rubygems