Sha256: 13c619cbad1d5188d2c60eba03f7d6c568b15926081cbdd7efe356ebacb9c5dc

Contents?: true

Size: 1.92 KB

Versions: 2

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"%dc033f4613f6a9e95d7cfd4f95d68aad;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"%79893ae90db63041ef2cfe53145cad06;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"%06ad871218bb692a6f5cb6fdd75a97d8;FI"
_version;TI"%2b66aa67c90052d553e0328c249bc9b0;F

Version data entries

2 entries across 1 versions & 1 rubygems

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