aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/webapp/javascripts/application.js
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2011-10-26 19:18:08 +0200
committerFabrice Bellingard <bellingard@gmail.com>2011-10-26 19:18:56 +0200
commitaf58e35a58579484d6521bd3e675c90e43c18623 (patch)
treef41f4dbd6540d223a2767134837340104f4c3a19 /sonar-server/src/main/webapp/javascripts/application.js
parenta589e2539c1d163337daf23b682c95d492b3fbb9 (diff)
downloadsonarqube-af58e35a58579484d6521bd3e675c90e43c18623.tar.gz
sonarqube-af58e35a58579484d6521bd3e675c90e43c18623.zip
SONAR-2733 Display duplicated blocks by group in the resource viewer
First shot, needs improvements.
Diffstat (limited to 'sonar-server/src/main/webapp/javascripts/application.js')
-rw-r--r--sonar-server/src/main/webapp/javascripts/application.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/javascripts/application.js b/sonar-server/src/main/webapp/javascripts/application.js
index 4de5a61ed91..5927f31860f 100644
--- a/sonar-server/src/main/webapp/javascripts/application.js
+++ b/sonar-server/src/main/webapp/javascripts/application.js
@@ -90,6 +90,17 @@ function hideElement( elementId ) {
return false;
}
+function updateDuplicationLines(selectedDiv, groupClass, groupRowClass) {
+ divs = $$('.'+groupClass);
+ for ( i = 0; i < divs.size(); i++) {
+ divs[i].removeClassName('selected');
+ }
+ divs = $$('.'+groupRowClass);
+ for ( i = 0; i < divs.size(); i++) {
+ divs[i].addClassName('selected');
+ }
+}
+
var projects;
function autocompleteProjects(APIURL, projectURL, searchInput, searchResult) {
if (projects != null) return;