Sha256: 239cceca9291fc1a041e0055d409f6efbb1bf092ebc8ab2fdf0cd7b600ae0fa1

Contents?: true

Size: 1.57 KB

Versions: 6

Compression:

Stored size: 1.57 KB

Contents

{I"
class:ETI"BundledAsset;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"%16a253208d1034025d7c4fda0bdad4f1;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"required_assets_digest;TI"%e86ff07d13425f9f1e687a1296e528b3;FI"
_version;TI"%5ef14a844324cba3e114bd0123f88a5e;F

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
storytime-1.0.2 spec/dummy/tmp/cache/assets/development/sprockets/31476a62d1a9f4f1c8c56a47afd026f3
storytime-1.0.2 spec/dummy/tmp/cache/assets/development/sprockets/9730106d756f09571d52e7acfb35f7e6
storytime-1.0.1 spec/dummy/tmp/cache/assets/development/sprockets/31476a62d1a9f4f1c8c56a47afd026f3
storytime-1.0.1 spec/dummy/tmp/cache/assets/development/sprockets/9730106d756f09571d52e7acfb35f7e6
storytime-1.0.0 spec/dummy/tmp/cache/assets/development/sprockets/31476a62d1a9f4f1c8c56a47afd026f3
storytime-1.0.0 spec/dummy/tmp/cache/assets/development/sprockets/9730106d756f09571d52e7acfb35f7e6