Sha256: 8f7aa1be34135d24c33c4647de9bcadbc173c3d1f77dc5a5a5aeefac8ba352ea

Contents?: true

Size: 1.92 KB

Versions: 1

Compression:

Stored size: 1.92 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"storytime/base.js;FI"
pathname;TI"j/Users/ben/Documents/projects/benroesch.com/storytime/app/assets/javascripts/storytime/base.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+~SI"length;Ti_I"digest;TI"%adbc156ce7418c23e709ec749cc7c9e5;FI"source;TI"_(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();
    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"%9dc6882b91b6d708b62af81a5386b545;FI"required_paths;T[I"j/Users/ben/Documents/projects/benroesch.com/storytime/app/assets/javascripts/storytime/base.js.coffee;FI"dependency_paths;T[{I"	path;TI"j/Users/ben/Documents/projects/benroesch.com/storytime/app/assets/javascripts/storytime/base.js.coffee;FI"
mtime;TI"2014-05-22T09:22:14-05:00;TI"digest;TI"%22fbd0a59475b0339d4f60ffe418e30c;FI"
_version;TI"%361c512b9086418778df946c0d278f91;F

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
storytime-0.0.1 spec/dummy/tmp/cache/assets/development/sprockets/165af8be47e919c036d6cdd8b4156c3f