Code

Add patch to remove references to flash files
[pkg-nagvis.git] / debian / patches / remove-shell-swf
1 --- a/share/frontend/nagvis-js/js/frontend.js
2 +++ b/share/frontend/nagvis-js/js/frontend.js
3 @@ -1432,8 +1432,8 @@ function parseOverviewGeomap() {
4          oTr.appendChild(oTd);
5  
6          // Link
7 -        var oLink = document.createElement('a');
8 -        oLink.href = oGeneralProperties.path_base+'/netmap/shell.html';
9 +//        var oLink = document.createElement('a');
10 +//        oLink.href = oGeneralProperties.path_base+'/netmap/shell.html';
11  
12          // Status image
13          var oImg = document.createElement('img');
14 @@ -1441,17 +1441,17 @@ function parseOverviewGeomap() {
15          oImg.src = oGeneralProperties.path_iconsets+'std_small_unknown.png';
16          oImg.alt = 'geomap';
17  
18 -        oLink.appendChild(oImg);
19 +//        oLink.appendChild(oImg);
20          oImg = null;
21  
22          // Title
23          var h2 = document.createElement('h2');
24          h2.appendChild(document.createTextNode('Geomap'));
25 -        oLink.appendChild(h2);
26 +//        oLink.appendChild(h2);
27          h2 = null;
28  
29          var br = document.createElement('br');
30 -        oLink.appendChild(br);
31 +//        oLink.appendChild(br);
32          br = null;
33  
34          // Only show map thumb when configured
35 @@ -1464,8 +1464,8 @@ function parseOverviewGeomap() {
36              oImg = null;
37          }
38  
39 -        oTd.appendChild(oLink);
40 -        oLink = null;
41 +//        oTd.appendChild(oLink);
42 +//        oLink = null;
43  
44          oTd = null;
45