Fix domain admin table, move quick actions

This commit is contained in:
andryyy
2017-04-27 19:34:00 +02:00
parent 2c2441eaf0
commit 25e6339940
4 changed files with 14 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
$(document).ready(function() {
$.ajax({
dataType: 'json',
url: '/api/v1/domain-admin/all',
url: '/api/v1/get/domain-admin/all',
jsonp: false,
error: function () {
alert('Cannot draw domain administrator table');

View File

@@ -237,6 +237,7 @@ $(document).ready(function() {
$.each(data, function (i, item) {
item.action = '<div class="btn-group">' +
'<a href="/edit.php?alias=' + encodeURI(item.address) + '" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-pencil"></span> ' + lang.edit + '</a>' +
'<a href="/remove.php?alias=' + encodeURI(item.address) + '" class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-pencil"></span> ' + lang.remove + '</a>' +
'</div>';
item.chkbox = '<input type="checkbox" class="alias_item" name="sel_aliases" value="' + item.address + '" />';
if (item.is_catch_all == 1) {