{:uriI"file:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/_form.js?type=application/javascript&pipeline=self&id=9b94f5589b527de96b84441ec463629f558eb9d2b6ffaed59e3a2e32f571902f: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;TT: requiredo;;{ :stubbedo;;{ : linkso;;{ :charsetI" utf-8;F:digest"%AR/d9Uߕ*\,&c/.v:lengthi4:dependencies_digest"%l\dWQx6OgsLNyt.e/J:idI"E9b94f5589b527de96b84441ec463629f558eb9d2b6ffaed59e3a2e32f571902f;F: mtimel+H%X