/* Formalize - version 1.2 Note: This file depends on the jQuery library. */ // Module pattern: // http://yuiblog.com/blog/2007/06/12/module-pattern var FORMALIZE = (function($, window, document, undefined) { // Internet Explorer detection. function IE(version) { var b = document.createElement('b'); b.innerHTML = ''; return !!b.getElementsByTagName('br').length; } // Private constants. var PLACEHOLDER_SUPPORTED = 'placeholder' in document.createElement('input'); var AUTOFOCUS_SUPPORTED = 'autofocus' in document.createElement('input'); var IE6 = IE(6); var IE7 = IE(7); // Expose innards of FORMALIZE. return { // FORMALIZE.go go: function() { var i, j = this.init; for (i in j) { j.hasOwnProperty(i) && j[i](); } }, // FORMALIZE.init init: { // FORMALIZE.init.disable_link_button disable_link_button: function() { $(document.documentElement).on('click', 'a.button_disabled', function() { return false; }); }, // FORMALIZE.init.full_input_size full_input_size: function() { if (!IE7 || !$('textarea, input.input_full').length) { return; } // This fixes width: 100% on