Sha256: b5c392c444e505318323ba6700e9d08c8c1fae7c9f622e6c66415f9c52278389

Contents?: true

Size: 911 Bytes

Versions: 4

Compression:

Stored size: 911 Bytes

Contents

I"ƒ(function() {
  $.rails.disableElement = function(element) {
    var classes, replacement;
    replacement = element.data('disable-with');
    classes = element.data('disable-class');
    element.data('ujs:enable-with', element.html());
    if (replacement !== void 0) {
      element.html(replacement);
    }
    if (classes !== void 0) {
      element.addClass(classes);
    }
    return element.bind('click.railsDisable', function(e) {
      return rails.stopEverything(e);
    });
  };

  $.rails.enableElement = function(element) {
    var classes;
    classes = element.data('disable-class');
    if (element.data('ujs:enable-with') !== void 0) {
      element.html(element.data('ujs:enable-with'));
      element.removeData('ujs:enable-with');
    }
    if (classes !== void 0) {
      element.removeClass(classes);
    }
    return element.unbind('click.railsDisable');
  };

}).call(this);
:ET

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
faalis-2.2.1 test/dummy/tmp/cache/assets/sprockets/v3.0/Yc/YcTAF_zlTCtdK08GJZtwWH9VWz_ZnqVzm5fYRthp7XA.cache
faalis-2.2.0 test/dummy/tmp/cache/assets/sprockets/v3.0/Yc/YcTAF_zlTCtdK08GJZtwWH9VWz_ZnqVzm5fYRthp7XA.cache
faalis-page-2.1.1 test/dummy/tmp/cache/assets/sprockets/v3.0/Yc/YcTAF_zlTCtdK08GJZtwWH9VWz_ZnqVzm5fYRthp7XA.cache
faalis-page-2.1.0 test/dummy/tmp/cache/assets/sprockets/v3.0/Yc/YcTAF_zlTCtdK08GJZtwWH9VWz_ZnqVzm5fYRthp7XA.cache