// // Note: This file depends on the ExtJS 3.x library. // var FORMALIZE = (function(window, document, undefined) { // Private constants. var PLACEHOLDER_SUPPORTED = 'placeholder' in document.createElement('input'); var AUTOFOCUS_SUPPORTED = 'autofocus' in document.createElement('input'); var WEBKIT = 'webkitAppearance' in document.createElement('select').style; var IE6 = Ext.isIE6; var IE7 = Ext.isIE7; // Expose innards of FORMALIZE. return { // FORMALIZE.go go: function() { for (var i in FORMALIZE.init) { FORMALIZE.init[i](); } }, // FORMALIZE.init init: { // FORMALIZE.init.detect_webkit detect_webkit: function() { if (!WEBKIT) { return; } // Tweaks for Safari + Chrome. // Ext.get(document.documentElement).addClass('is_webkit'); }, // FORMALIZE.init.full_input_size full_input_size: function() { if (!IE7 || !Ext.query('textarea, input.input_full')) { return; } // This fixes width: 100% on