Browse Source

Fix API paths for manage custom nav elements

tags/3.1.0
Mike Koch 2 years ago
parent
commit
40724c3503
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      internal-api/js/manage-custom-nav-elements.js

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

@@ -42,7 +42,7 @@ $(document).ready(function() {

$('form#manage-nav-element').submit(function(e) {
e.preventDefault();
var heskUrl = $('#heskUrl').text();
var heskUrl = $('p#hesk-path').text();

var $modal = $('#nav-element-modal');

@@ -306,7 +306,7 @@ function bindDeleteButton() {
$(document).on('click', '[data-action="delete"]', function() {
$('#overlay').show();

var heskUrl = $('#heskUrl').text();
var heskUrl = $('p#hesk-path').text();
var element = elements[$(this).parent().parent().find('[data-property="id"]').text()];

$.ajax({
@@ -329,7 +329,7 @@ function bindDeleteButton() {
function bindSortButtons() {
$(document).on('click', '[data-action="sort"]', function() {
$('#overlay').show();
var heskUrl = $('#heskUrl').text();
var heskUrl = $('p#hesk-path').text();
var direction = $(this).data('direction');
var element = elements[$(this).parent().parent().find('[data-property="id"]').text()];


Loading…
Cancel
Save