{I" class:ETI"ProcessedAsset;FI"logical_path;TI"storytime/base.js;FI" pathname;TI"Z/Users/ben/flyover/projects/storytime/app/assets/javascripts/storytime/base.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+³öSI" length;TizI" digest;TI"%58531ae5f9984eb1fca5c1dbf2b2034d;FI" source;TI"z(function() { $(function() { var action, controller, controllerObj, instance; controller = $("body").data("controller"); action = $("body").data("action"); controllerObj = Storytime.Utilities.controllerFromString(controller); if (controllerObj != null) { instance = new controllerObj(); if (typeof instance["init"] === "function") { instance["init"](); } if (typeof instance["init" + action] === "function") { instance["init" + action](); } Storytime.instance = instance; } $(".flash").delay(2000).fadeOut(); $(".chosen").chosen(); return $(document).on('ajax:beforeSend', '.btn-delete-resource', function() { return $(this).attr("disabled", true); }).on('ajax:success', '.btn-delete-resource', function() { return $("#" + ($(this).data('resource-type')) + "_" + ($(this).data('resource-id'))).remove(); }).on('ajax:error', '.btn-delete-resource', function(e, data, d1, d2) { $(this).attr("disabled", false); return alert("There was an error deleting your " + ($(this).data('resource-type'))); }); }); }).call(this); ;TI"dependency_digest;TI"%e5ecbf5ea8f6dc16ed90ab1a4360bc5e;FI"required_paths;T[I"Z/Users/ben/flyover/projects/storytime/app/assets/javascripts/storytime/base.js.coffee;FI"dependency_paths;T[{I" path;TI"Z/Users/ben/flyover/projects/storytime/app/assets/javascripts/storytime/base.js.coffee;FI" mtime;TI"2014-08-21T10:43:47-05:00;TI" digest;TI"%6d14f996ed366eab012bf32cb7154ddb;FI" _version;TI"%2b66aa67c90052d553e0328c249bc9b0;F