From b6aac6347ab9328e39af4a38f2bdd3775182fad1 Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Fri, 22 Apr 2022 12:00:18 +0200 Subject: [PATCH] fix: [UI] Template element sorting --- app/View/TemplateElements/ajax/ajaxIndex.ctp | 2 +- app/webroot/js/misp.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/View/TemplateElements/ajax/ajaxIndex.ctp b/app/View/TemplateElements/ajax/ajaxIndex.ctp index a6eb083c5..4e5a993e5 100644 --- a/app/View/TemplateElements/ajax/ajaxIndex.ctp +++ b/app/View/TemplateElements/ajax/ajaxIndex.ctp @@ -33,6 +33,6 @@ $(function() { saveElementSorting(JSON.stringify(order)); } - }).disableSelection(); + }); }); diff --git a/app/webroot/js/misp.js b/app/webroot/js/misp.js index 493741059..8986731b5 100644 --- a/app/webroot/js/misp.js +++ b/app/webroot/js/misp.js @@ -1516,6 +1516,7 @@ function saveElementSorting(order) { success:function (data) { handleGenericAjaxResponse(data); }, + error: xhrFailCallback, type:"post", cache: false, url: baseurl + "/templates/saveElementSorting/",