Sha256: f2ee8a85e5ce2f57ae67bbb925afe9b6565cb4004f7ee4fd0706973547610db1
Contents?: true
Size: 915 Bytes
Versions: 3
Compression:
Stored size: 915 Bytes
Contents
(function() { $(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'); } }); }); }).call(this);
Version data entries
3 entries across 3 versions & 1 rubygems