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

bootstrap.js « commons « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 50e2949ab55f218722fc2a3427ad55c5c3e2aacd (plain)
1
2
3
4
5
6
7
8
9
10
import $ from 'jquery';

// bootstrap jQuery plugins
import 'bootstrap';

// custom jQuery functions
$.fn.extend({
  disable() { return $(this).prop('disabled', true).addClass('disabled'); },
  enable() { return $(this).prop('disabled', false).removeClass('disabled'); },
});