summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/extensions/jquery.js
blob: ae3dde63da382bfb6cb24695daeb34579f1c5c2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(function() {
  $.fn.extend({
    disable: function() {
      return $(this).attr('disabled', 'disabled').addClass('disabled');
    }
  });

  $.fn.extend({
    enable: function() {
      return $(this).removeAttr('disabled').removeClass('disabled');
    }
  });

}).call(this);