Sha256: 70ab8b5c80ba50163aa865d1ac5a5c6bfed35f4c4432486ced9908a8ddf0b18a
Contents?: true
Size: 1.33 KB
Versions: 2
Compression:
Stored size: 1.33 KB
Contents
{I" class:ETI"BundledAsset; FI"logical_path; TI""spotlight/report_a_problem.js; FI" pathname; TI"^/Users/cabeer/Projects/sul/spotlight/app/assets/javascripts/spotlight/report_a_problem.js; FI"content_type; TI"application/javascript; TI" mtime; Tl+;ØFTI"length; TimI"digest; TI"%5a21f914315daafeb5774359fae019b3; FI"source; TI"m(function( $ ){ $.fn.reportProblem = function( options ) { // Create some defaults, extending them with any options that were provided var settings = $.extend( { }, options); var container, target, cancel; function init() { target_val = container.attr('data-target') if (!target_val) return target = $("#" + target_val); container.on('click', open); target.find('[data-behavior="cancel-link"]').on('click', close); } function open(event) { event.preventDefault(); target.slideToggle('slow'); } function close(event) { event.preventDefault(); target.slideUp('fast'); } return this.each(function() { container = $(this); init(); }); } })( jQuery ); Spotlight.onLoad(function() { $('[data-behavior="contact-link"]').reportProblem(); }); ; TI"required_assets_digest; TI"%035406dc1e7e853fff6c0d1a25170fcc; FI" _version; TI"%069e88c06b889877799890854d7f4c40; F
Version data entries
2 entries across 1 versions & 1 rubygems