{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+ÁËRI"length; TiÿLI"digest; TI"%a078e499c43eebed5ccbb4042e1ab816; FI"source; TI"ÿL(function() { var _ref, _ref1, _ref10, _ref11, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, __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 = $("