diff --git a/src/opnsense/mvc/app/views/layout_partials/form_input_tr.volt b/src/opnsense/mvc/app/views/layout_partials/form_input_tr.volt
index d50731811..d1a4c858d 100644
--- a/src/opnsense/mvc/app/views/layout_partials/form_input_tr.volt
+++ b/src/opnsense/mvc/app/views/layout_partials/form_input_tr.volt
@@ -42,16 +42,16 @@ readonly : if true, input fields will be readonly
#}
-
+
|
- |
{% if type == "text" %}
@@ -60,7 +60,7 @@ readonly : if true, input fields will be readonly
{% elseif type == "select_multiple" %}
- {{ lang._('Clear All') }}
+ {{ lang._('Clear All') }}
{% elseif type == "dropdown" %}
{% elseif type == "password" %}
@@ -72,10 +72,12 @@ readonly : if true, input fields will be readonly
{% endif %}
{% if help|default(false) %}
- {{help}}
+
{% endif %}
|
-
+
|
diff --git a/src/opnsense/www/js/opnsense.js b/src/opnsense/www/js/opnsense.js
index 22fa17c00..516788d1f 100644
--- a/src/opnsense/www/js/opnsense.js
+++ b/src/opnsense/www/js/opnsense.js
@@ -162,11 +162,11 @@ function setFormData(parent,data) {
function handleFormValidation(parent,validationErrors) {
$( "#"+parent).find("*").each(function( index ) {
if (validationErrors != undefined && $(this).prop('id') in validationErrors) {
- $("*[for='" + $(this).prop('id') + "']").addClass("has-error");
- $("span[for='" + $(this).prop('id') + "']").text(validationErrors[$(this).prop('id')]);
+ $("*[id*='" + $(this).prop('id') + "']").addClass("has-error");
+ $("span[id='help_block_" + $(this).prop('id') + "']").text(validationErrors[$(this).prop('id')]);
} else {
- $("*[for='" + $(this).prop('id') + "']").removeClass("has-error");
- $("span[for='" + $(this).prop('id') + "']").text("");
+ $("*[id*='" + $(this).prop('id') + "']").removeClass("has-error");
+ $("span[id='help_block_" + $(this).prop('id') + "']").text("");
}
});
}
diff --git a/src/opnsense/www/js/opnsense_ui.js b/src/opnsense/www/js/opnsense_ui.js
index a51093d03..edf421821 100644
--- a/src/opnsense/www/js/opnsense_ui.js
+++ b/src/opnsense/www/js/opnsense_ui.js
@@ -195,7 +195,7 @@ function formatTokenizersUI(){
function addMultiSelectClearUI() {
$('[id*="clear-options"]').each(function() {
$(this).click(function() {
- var id = $(this).attr("for");
+ var id = $(this).attr("id").replace(/_*clear-options_*/, '');
BootstrapDialog.confirm({
title: 'Deselect or remove all items ?',
message: 'Deselect or remove all items ?',