{I" class:ETI"ProcessedAsset; FI"logical_path; TI"basepack/forms.js; FI" pathname; TI"O/home/lukas/projects/basepack/app/assets/javascripts/basepack/forms.coffee; FI"content_type; TI"application/javascript; TI" mtime; Tl+FˆSI"length; Ti•LI"digest; TI"%ecb3babdad40438d108db60657a1ce4f; FI"source; TI"•L(function() { var __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; $.fn.findExtended = function(selector) { if (_.str.startsWith(selector, "parent=")) { return this.parents(selector.substring("parent=".length)); } else if (_.str.startsWith(selector, "field=")) { return this.parents(".form-inputs:first").find("*[name$='[" + selector.substring("field=".length) + "]']"); } else { return $(selector); } }; $(document).on('nested:fieldAdded', 'form', function(content) { var form; form = new Basepack.Form(content.field); return form.bind(); }); $(document).on('click.data-api', '[data-toggle="checkboxes"]', function() { return $($(this).data('target')).prop("checked", $(this).is(":checked")); }); $(document).on('click.data-api', '[data-toggleclass]', function(e) { return $(this).toggleClass($(this).data("toggleclass")); }); $(document).on('click.data-api', '[data-toggle="ajax-modal"]', function(e) { var $modal, options; $("body").modalmanager("loading"); $modal = $("