2
0
Fork 0

Fix API paths for manage custom nav elements

remotes/remote_mirror_8/master
Mike Koch 7 anos atrás
commit 40724c3503

@ -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()];

Carregando…
Cancelar
Salvar