{:uriI"file:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/_form.js?type=application/javascript&pipeline=self&id=66a373a4608d1e9c979cc87c7ba9da3425056ccc8fabc0f853a698ed75be0956:ET:load_pathI"G/Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts;F: 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"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;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%AR/d9Uߕ*\,&c/.v: lengthi4:integrityI"Xni:///sha-256;9UF_1FKXL2SFgfW4OVXflSpclg-DvCzxr58mxWMvLnY?ct=application/javascript;T:dependencies_digest"%1(i<>80!>|M:idI"E66a373a4608d1e9c979cc87c7ba9da3425056ccc8fabc0f853a698ed75be0956;F: mtimel+H%X