From: andre.peters Date: Sun, 19 Mar 2017 18:21:46 +0000 (+0100) Subject: Use data id to identify input field X-Git-Tag: 1.5.4~81^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a6b328b353bedca8df0ca30865162108bb6547e;p=thirdparty%2Frspamd.git Use data id to identify input field --- diff --git a/interface/js/app/config.js b/interface/js/app/config.js index 999adce889..7b8ec9710e 100644 --- a/interface/js/app/config.js +++ b/interface/js/app/config.js @@ -136,7 +136,7 @@ function($) { function loadActionsFromForm() { var values = []; - var inputs = $('#actionsForm :input[type="slider"]'); + var inputs = $('#actionsForm :input[data-id="action"]'); // Rspamd order: [spam,probable_spam,greylist] values[0] = parseFloat(inputs[2].value); values[1] = parseFloat(inputs[1].value); @@ -183,7 +183,7 @@ function($) { html: '
' + '' + '
' + - '' + + '' + '
' + '
' }); @@ -205,9 +205,10 @@ function($) { return e.html; }).join('') + '
' + + '
' + '' + '' + - '
'); + '
'); if (rspamd.read_only) { $('#saveActionsClusterBtn').attr('disabled', true); $('#saveActionsBtn').attr('disabled', true);