diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-23 10:13:01 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-23 10:13:01 +0000 |
commit | d1e49accf9ee939b10e173c985de8b8d58859296 (patch) | |
tree | 40d397f1e678096cbb6eedb4291b6388345b27d7 /interface | |
parent | f296613168232ad87b8c0953c4b883419e9b7223 (diff) | |
download | rspamd-d1e49accf9ee939b10e173c985de8b8d58859296.tar.gz rspamd-d1e49accf9ee939b10e173c985de8b8d58859296.zip |
[Feature] Show map URLs in webui
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/rspamd.js | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index 5f276f5f5..0f01dccd9 100644 --- a/interface/js/rspamd.js +++ b/interface/js/rspamd.js @@ -191,13 +191,15 @@ saveMaps(data); getMapById(); $.each(data, function (i, item) { + var caption; + var label; if ((item.editable == false)) { - var caption = 'View'; - var label = '<span class="label label-default">Read</span>'; + caption = 'View'; + label = '<span class="label label-default">Read</span>'; } else { - var caption = 'Edit'; - var label = '<span class="label label-default">Read</span> <span class="label label-success">Write</span>'; + caption = 'Edit'; + label = '<span class="label label-default">Read</span> <span class="label label-success">Write</span>'; } items.push('<tr>' + '<td class="col-md-2 maps-cell">' + label + '</td>' + @@ -206,8 +208,11 @@ 'data-source="#' + item.map + '" ' + 'data-editable="' + item.editable + '" ' + 'data-target="#modalDialog" ' + - 'data-title="' + item.description + - '" data-toggle="modal">' + item.description + '</span>' + + 'data-title="' + item.uri + + '" data-toggle="modal">' + item.uri + '</span>' + + '</td>' + + '<td>' + + item.description + '</td>' + '</tr>'); }); |