diff options
author | Anna Stakhova <anna@rspamd.com> | 2017-01-09 11:00:15 +0000 |
---|---|---|
committer | Anna Stakhova <anna@rspamd.com> | 2017-01-09 11:00:15 +0000 |
commit | 3708605e53640eb4fa2a0267a4755a42b4adc4fa (patch) | |
tree | 99a6bd2c3f49865ac31e0de6bc9200f53615cd4b /interface | |
parent | 277f66855e3f6477568ef954ef4d7799b6dcf780 (diff) | |
download | rspamd-3708605e53640eb4fa2a0267a4755a42b4adc4fa.tar.gz rspamd-3708605e53640eb4fa2a0267a4755a42b4adc4fa.zip |
[WebUI] Fix config ID
Diffstat (limited to 'interface')
-rw-r--r-- | interface/index.html | 21 | ||||
-rw-r--r-- | interface/js/rspamd.js | 4 |
2 files changed, 2 insertions, 23 deletions
diff --git a/interface/index.html b/interface/index.html index d73acf7a7..e5f6340c1 100644 --- a/interface/index.html +++ b/interface/index.html @@ -81,27 +81,6 @@ <th class="col5" title="SId">Configuration ID</th> </thead> <tbody> - <tr> - <td class="col1" title="Radio"><input type="radio" id ="bu" class="form-control radio" name="clusterName" value="" checked></td> - <td class="col2" title="SName">ALL SERVERS</td> - <td class="col3" title="SHost"></td> - <td class="col4" title="SStatus"></td> - <td class="col5" title="SId">?????????????</td> - </tr> - <tr> - <td class="col1" title="Radio"><input type="radio" class="form-control radio" name="clusterName" value=""></td> - <td class="col2" title="SName">Server1</td> - <td class="col3" title="SHost">localhost:8080</td> - <td class="col4" title="SStatus"><span class="icon"><i class="glyphicon glyphicon-remove-circle"></i></span></td> - <td class="col5" title="SId">?????????????</td> - </tr> - <tr> - <td class="col1" title="Radio"><input type="radio" class="form-control radio" name="clusterName" value=""></td> - <td class="col2" title="SName">Server2</td> - <td class="col3" title="SHost">localhost:8080</td> - <td class="col4" title="SStatus"><span class="icon"><i class="glyphicon glyphicon-ok-circle"></i></span></td> - <td class="col5" title="SId">?????????????</td> - </tr> </tbody> </table> </div> diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index eec754cb4..be757ce4d 100644 --- a/interface/js/rspamd.js +++ b/interface/js/rspamd.js @@ -380,14 +380,14 @@ '<td class="col2" title="SNAme">' + key + '</td>' + '<td class="col3" title="SHost">' + val.host + '</td>' + '<td class="col4" title="SStatus"><span class="icon"><i class="' + glyph_status + '"></i></span></td>' + - '<td class="col5" title="SId">' + val.data.config_id + '</td></tr>'); + '<td class="col5" title="SId">' + val.data.config_id.substring(0, 8) + '</td></tr>'); } else { $('#clusterTable tbody').append('<tr>' + '<td class="col1" title="Radio"><input type="radio" class="form-control radio" name="clusterName" value="' + key + '"></td>' + '<td class="col2" title="SNAme">' + key + '</td>' + '<td class="col3" title="SHost">' + val.host + '</td>' + '<td class="col4" title="SStatus"><span class="icon"><i class="' + glyph_status + '"></i></span></td>' + - '<td class="col5" title="SId">' + val.data.config_id + '</td></tr>'); + '<td class="col5" title="SId">' + val.data.config_id.substring(0, 8) + '</td></tr>'); } }); |