summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-07 23:51:13 +0200
committerRémy Coutable <remy@rymai.me>2017-06-09 17:21:39 +0200
commitb173ae6b48323b22f5650e97cd797fa9c49e6cd8 (patch)
tree9c1266742aa0b8e785fab9a6054b32d4029ba22e /vendor
parentaf0c69170695f43b15db9c93ae2f2b8ebaaa96b6 (diff)
downloadgitlab-ce-b173ae6b48323b22f5650e97cd797fa9c49e6cd8.tar.gz
Fix linting, route, and specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'vendor')
-rw-r--r--vendor/assets/javascripts/peek.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/vendor/assets/javascripts/peek.js b/vendor/assets/javascripts/peek.js
index 4db076d259a..427a8a3efad 100644
--- a/vendor/assets/javascripts/peek.js
+++ b/vendor/assets/javascripts/peek.js
@@ -1,13 +1,7 @@
-let requestId = null;
-
(function($) {
var fetchRequestResults, getRequestId, peekEnabled, toggleBar, updatePerformanceBar;
getRequestId = function() {
- if (requestId != null) {
- return requestId;
- } else {
- return $('#peek').data('request-id');
- }
+ return $('#peek').data('request-id');
};
peekEnabled = function() {
return $('#peek').length;
@@ -64,7 +58,7 @@ let requestId = null;
}
};
fetchRequestResults = function() {
- return $.ajax('/peek/results', {
+ return $.ajax('/-/peek/results', {
data: {
request_id: getRequestId()
},