Fixed some JS files
This commit is contained in:
parent
77c5c3d872
commit
ef481b3192
@ -82,7 +82,7 @@ $(document).ready(function() {
|
|||||||
url: navUrl
|
url: navUrl
|
||||||
};
|
};
|
||||||
|
|
||||||
var url = heskUrl + '/api/v1-internal/custom-navigation/';
|
var url = heskUrl + 'api/index.php/v1-internal/custom-navigation/';
|
||||||
var method = 'POST';
|
var method = 'POST';
|
||||||
|
|
||||||
if (id !== -1) {
|
if (id !== -1) {
|
||||||
@ -131,7 +131,7 @@ function loadTable() {
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: 'GET',
|
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 },
|
headers: { 'X-Internal-Call': true },
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
$tableBody.html('');
|
$tableBody.html('');
|
||||||
@ -311,7 +311,7 @@ function bindDeleteButton() {
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: 'DELETE',
|
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 },
|
headers: { 'X-Internal-Call': true },
|
||||||
success: function() {
|
success: function() {
|
||||||
mfhAlert.success(mfhLang.text('custom_nav_element_deleted'));
|
mfhAlert.success(mfhLang.text('custom_nav_element_deleted'));
|
||||||
@ -335,7 +335,7 @@ function bindSortButtons() {
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: 'POST',
|
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 },
|
headers: { 'X-Internal-Call': true },
|
||||||
success: function() {
|
success: function() {
|
||||||
loadTable();
|
loadTable();
|
||||||
|
@ -45,7 +45,7 @@ function displayResults(data) {
|
|||||||
table.empty();
|
table.empty();
|
||||||
|
|
||||||
if (data.length === 0) {
|
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 {
|
} else {
|
||||||
for (var index in data) {
|
for (var index in data) {
|
||||||
var result = data[index];
|
var result = data[index];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user