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:
authorJosé Iván <jivanvlop@gmail.com>2016-09-06 06:28:59 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2016-11-04 07:00:21 +0300
commitb1b51b774bffd64b9117296d46052b8bbc44f430 (patch)
treeb9329ef12e5c26d9172b5f9a022547d1bc7ee040 /app/assets/javascripts/confirm_danger_modal.js
parent3a8a7c1251cef4098ffbc54718ba21736c5e2800 (diff)
Cleaned up global namespace JS
Moved most of the functions that contained "window.doSomething" that were located at: - app/assets/javascripts/application.js To the following file: - app/assets/javascripts/lib/utils/common_utils.js The functions listed here: - window.ajaxGet - window.split - window.extractLast - window.rstrip - window.disableButtonIfEmptyField - window.disableButtonIfAnyEmptyField - window.sanitize - window.unbindEvents - window.shiftWindow Now will be accessible from the "gl.utils" namespace
Diffstat (limited to 'app/assets/javascripts/confirm_danger_modal.js')
-rw-r--r--app/assets/javascripts/confirm_danger_modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/confirm_danger_modal.js b/app/assets/javascripts/confirm_danger_modal.js
index 230a1b95c52..143d21adb37 100644
--- a/app/assets/javascripts/confirm_danger_modal.js
+++ b/app/assets/javascripts/confirm_danger_modal.js
@@ -12,7 +12,7 @@
submit.disable();
$('.js-confirm-danger-input').off('input');
$('.js-confirm-danger-input').on('input', function() {
- if (rstrip($(this).val()) === project_path) {
+ if (gl.utils.rstrip($(this).val()) === project_path) {
return submit.enable();
} else {
return submit.disable();