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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/commons/bootstrap.js')
-rw-r--r--app/assets/javascripts/commons/bootstrap.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/assets/javascripts/commons/bootstrap.js b/app/assets/javascripts/commons/bootstrap.js
index 2a1244149ff..f750c62103e 100644
--- a/app/assets/javascripts/commons/bootstrap.js
+++ b/app/assets/javascripts/commons/bootstrap.js
@@ -13,14 +13,10 @@ import 'bootstrap/js/dist/tab';
// custom jQuery functions
$.fn.extend({
disable() {
- return $(this)
- .prop('disabled', true)
- .addClass('disabled');
+ return $(this).prop('disabled', true).addClass('disabled');
},
enable() {
- return $(this)
- .prop('disabled', false)
- .removeClass('disabled');
+ return $(this).prop('disabled', false).removeClass('disabled');
},
});