Welcome to mirror list, hosted at ThFree Co, Russian Federation.

jquery.js « extensions « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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);