diff --git a/app/frontend/templates/panel/config_json.html b/app/frontend/templates/panel/config_json.html
index 71dc8ed4..eea9624a 100644
--- a/app/frontend/templates/panel/config_json.html
+++ b/app/frontend/templates/panel/config_json.html
@@ -69,10 +69,12 @@
$(this).removeAttr('selected').prop('selected', false);
});">Enable all Languages
-
+
{% elif isinstance(item[1], list) %}
+ class="form-control list">{{','.join(item[1])}}
{% elif isinstance(item[1], bool) %}
{% if item[1] == True %}
@@ -91,14 +93,14 @@
{% end %}
{% elif isinstance(item[1], int) %}
+ step="1" min="0" required>
{% else %}
-
+
{% end %}
{% end %}
-
+
@@ -133,6 +135,7 @@
var token = getCookie("_xsrf")
e.preventDefault();
+ $("#submit-status").html('');
/* Convert multiple select to text list */
let selected_Lang = $('#lang_select').val();
$('#disabled_lang').val(selected_Lang);
@@ -147,12 +150,11 @@
$.ajax({
type: "POST",
headers: { 'X-XSRFToken': token },
- dataType: "json",
+ dataType: "text",
url: '/panel/config_json',
data: form_json,
- success: function () {
- console.log("in reload")
- window.location.reload();
+ success: function (data) {
+ $("#submit-status").html('');
},
});
});