Browse Source

Fixed some JS files

tags/3.1.0
Mike Koch 2 years ago
parent
commit
ef481b3192

+ 4
- 4
internal-api/js/manage-custom-nav-elements.js View File

@@ -82,7 +82,7 @@ $(document).ready(function() {
url: navUrl
};

var url = heskUrl + '/api/v1-internal/custom-navigation/';
var url = heskUrl + 'api/index.php/v1-internal/custom-navigation/';
var method = 'POST';

if (id !== -1) {
@@ -131,7 +131,7 @@ function loadTable() {

$.ajax({
method: 'GET',
url: heskUrl + 'api/v1-internal/custom-navigation/all',
url: heskUrl + 'api/index.php/v1-internal/custom-navigation/all',
headers: { 'X-Internal-Call': true },
success: function(data) {
$tableBody.html('');
@@ -311,7 +311,7 @@ function bindDeleteButton() {

$.ajax({
method: 'DELETE',
url: heskUrl + '/api/v1-internal/custom-navigation/' + element.id,
url: heskUrl + 'api/index.php/v1-internal/custom-navigation/' + element.id,
headers: { 'X-Internal-Call': true },
success: function() {
mfhAlert.success(mfhLang.text('custom_nav_element_deleted'));
@@ -335,7 +335,7 @@ function bindSortButtons() {

$.ajax({
method: 'POST',
url: heskUrl + '/api/v1-internal/custom-navigation/' + element.id + '/sort/' + direction,
url: heskUrl + 'api/index.php/v1-internal/custom-navigation/' + element.id + '/sort/' + direction,
headers: { 'X-Internal-Call': true },
success: function() {
loadTable();

+ 1
- 1
internal-api/js/view-message-log.js View File

@@ -45,7 +45,7 @@ function displayResults(data) {
table.empty();

if (data.length === 0) {
table.append('<tr><td colspan="4">No results found</td></tr>');
table.append('<tr><td colspan="5">No results found</td></tr>');
} else {
for (var index in data) {
var result = data[index];

Loading…
Cancel
Save