aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/libs
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-02-02 09:59:36 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-02-19 11:01:56 +0100
commit2ee64e504b6921fd2d2f2d183e425904bc492c9d (patch)
tree37b02f07c7a819f4cd9f41d2a1b83ac37445c376 /server/sonar-web/src/main/js/libs
parent0c2b2d0afe3f28f7075fcadb78a81c59a21b34d3 (diff)
downloadsonarqube-2ee64e504b6921fd2d2f2d183e425904bc492c9d.tar.gz
sonarqube-2ee64e504b6921fd2d2f2d183e425904bc492c9d.zip
SONAR-7122 drop web context from js code
Diffstat (limited to 'server/sonar-web/src/main/js/libs')
-rw-r--r--server/sonar-web/src/main/js/libs/application.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/libs/application.js b/server/sonar-web/src/main/js/libs/application.js
index 5014472cc24..20564e127d5 100644
--- a/server/sonar-web/src/main/js/libs/application.js
+++ b/server/sonar-web/src/main/js/libs/application.js
@@ -99,7 +99,7 @@
function toggleFav (resourceId, elt) {
jQuery.ajax({
- type: 'POST', dataType: 'json', url: baseUrl + '/favourites/toggle/' + resourceId,
+ type: 'POST', dataType: 'json', url: '/favourites/toggle/' + resourceId,
success: function (data) {
var star = jQuery(elt);
star.removeClass('icon-favorite icon-not-favorite');