{:uriI"Éfile:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/_form.js?type=application/javascript&pipeline=self&id=1bab977feaa8597a612b579f6417642ef09e8962721793d2cc2d8c3fb4200138:ET:load_pathI"G/Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts;T: filenameI"Y/Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/_form.js;T: nameI"fae/form/_form;T:logical_pathI"fae/form/_form.self.js;T:content_typeI"application/javascript;T: sourceI"c/* global Fae */ /** * Fae form * @namespace form * @memberof Fae */ Fae.form = { ready: function() { // Mutate DOM to support two column labels for all standard inputs this.makeTwoColumnLabels(); this.dates.init(); this.text.init(); this.select.init(); this.checkbox.init(); this.validator.init(); this.cancel.init(); this.ajax.init(); this.filtering.init(); this.slugger.init(); // input type=file customization // This doesn't work in IE. It's not worth figuring out why by this point. IE9 gets plain file uploader. if (!FCH.IE9) { $('.input.file').fileinputer(); } // make all the hint areas $('.hint').hinter(); }, makeTwoColumnLabels: function() { $('.input label').each(function() { var $element = $(this); // Bail if we cannot find any helper_text if (!$element.find('.helper_text').length) { $element.addClass('has_no_helper_text'); } // If present, get all DOM nodes w/ contents(), but ignore the .helper_text var label_inner = $element.contents().filter(function() { return !$(this).hasClass('helper_text'); }); var helper_text = $element.find('.helper_text'); // Replace existing label w/ newly wrapped elements, sans .helper_text label_inner = $('
').html(label_inner); $element.html(label_inner); // But then add .helper_text as a sibling $element.append(helper_text); // Ensure that we mark this input as having two column label support $element.addClass('label--two_col'); }); } }; ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"gfile-digest:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/_form.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%Øþ’Ì“Û T˜‘ ;´ÿHÝCÛ·^ÁG'B°ÿÊb>»: lengthic:dependencies_digest"%Ta拉t€u}ɇé˜} 2.ôètñöÌËÝP¢:idI"E1bab977feaa8597a612b579f6417642ef09e8962721793d2cc2d8c3fb4200138;F: mtimel+f¦ŽY