Sha256: fbebe9c7c321eb627bafdd7915a9a04b4eaf660bada6dc42d8d489d1ea1f5039
Contents?: true
Size: 883 Bytes
Versions: 4
Compression:
Stored size: 883 Bytes
Contents
// Generated by CoffeeScript 1.6.1 $(function() { $('body').on('click', '\ .error input, \ .error textarea, \ .invalid input, \ .invalid textarea, \ input.error, \ textarea.error, \ input.invalid, \ textarea.invalid', function(e) { return $(this).focus().select(); }); $('span.select select').each(function() { if ($(this).children('option').first().val() === '' && $(this).children('option').first().attr('selected')) { return $(this).addClass('unselected'); } else { return $(this).removeClass('unselected'); } }); $('body').on('change', 'span.select select', function(e) { if ($(this).children('option').first().val() === '' && $(this).children('option').first().attr('selected')) { return $(this).addClass('unselected'); } else { return $(this).removeClass('unselected'); } }); });
Version data entries
4 entries across 4 versions & 1 rubygems