Sha256: 4bcac4bb08dd675c070da67d0e7164f2161c0f582aa8c20fce5b3581d02b638e

Contents?: true

Size: 1.9 KB

Versions: 1

Compression:

Stored size: 1.9 KB

Contents

{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+ƒUTI"length;TizI"digest;TI"%65c679b73ce60e9e6cc1ce11c48fde27;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"%20938285b8577f972e16f1e9ba528d77;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-09-03T12:53:07-05:00;TI"digest;TI"%c938653ccd88a624ee47ecc55d0c0a83;FI"
_version;TI"%37d9e9317b7fde5d2addbefd4177a12b;F

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
storytime-1.0.2 spec/dummy/tmp/cache/assets/test/sprockets/0e67bf459da3f7597b01fb11f2bda4f7