{:uriI"file:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/_form.js?type=application/javascript&pipeline=self&id=00e9b6b3937ace4b614a2bb88c0f6ea068296b20e54ae7eb4e1027ab5c5947b3: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"4/* global Fae */ /** * Fae form * @namespace form * @memberof Fae */ Fae.form = { ready: function() { 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(); } // Mutate DOM to support two column labels for all standard inputs this.makeTwoColumnLabels(); // 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) { return; } // 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"%AR/d9Uߕ*\,&c/.v:lengthi4:dependencies_digest"%zp!D4A3D/.G:idI"E00e9b6b3937ace4b614a2bb88c0f6ea068296b20e54ae7eb4e1027ab5c5947b3;F: mtimel+ZY