Sha256: 37bf20c6de1f52e6a7817df7f5ce826fdf6e1d95523d23cd45d458dfd618fcba
Contents?: true
Size: 1.65 KB
Versions: 6
Compression:
Stored size: 1.65 KB
Contents
//= require ./jquery //= require ./jquery_ujs //= require ./list //= require ./stupidtable //= require ./jquery.stickytableheaders //= require ./selectize //= require ./highlight.pack //= require ./moment //= require ./moment-timezone //= require ./daterangepicker //= require ./Chart.js //= require ./chartkick //= require ./ace/ace //= require ./ace/ext-language_tools //= require ./ace/theme-twilight //= require ./ace/mode-sql //= require ./ace/snippets/text //= require ./ace/snippets/sql //= require ./Sortable //= require ./bootstrap $( function () { $('.dropdown-toggle').mouseenter( function () { $(this).parent().addClass('open'); }); }); // Prevent backspace from navigating backwards. // Adapted from Biff MaGriff: http://stackoverflow.com/a/7895814/1196499 function preventBackspaceNav() { $(document).keydown(function (e) { var preventKeyPress; if (e.keyCode == 8) { var d = e.srcElement || e.target; switch (d.tagName.toUpperCase()) { case 'TEXTAREA': preventKeyPress = d.readOnly || d.disabled; break; case 'INPUT': preventKeyPress = d.readOnly || d.disabled || (d.attributes["type"] && $.inArray(d.attributes["type"].value.toLowerCase(), ["radio", "reset", "checkbox", "submit", "button"]) >= 0); break; case 'DIV': preventKeyPress = d.readOnly || d.disabled || !(d.attributes["contentEditable"] && d.attributes["contentEditable"].value == "true"); break; default: preventKeyPress = true; break; } } else { preventKeyPress = false; } if (preventKeyPress) { e.preventDefault(); } }); }
Version data entries
6 entries across 6 versions & 1 rubygems