Fixed some JS files
This commit is contained in:
parent
77c5c3d872
commit
ef481b3192
@ -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();
|
||||
|
@ -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…
x
Reference in New Issue
Block a user