diff options
author | plumbeo <plumbeo@users.noreply.github.com> | 2016-12-17 18:41:26 +0100 |
---|---|---|
committer | Jared Dillard <jdillard@netgate.com> | 2016-12-19 14:27:32 -0600 |
commit | 3eaf25aad50a6b0e579482f6cad9b522fb8f62cf (patch) | |
tree | 72e1e5d3b5bd82d3dac8e1352adac86aa70a11bc /src/usr/local/www/js | |
parent | 7145bb56eaa1951eda72cdfdc376b0973ebf180d (diff) | |
download | pfsense-3eaf25aad50a6b0e579482f6cad9b522fb8f62cf.zip pfsense-3eaf25aad50a6b0e579482f6cad9b522fb8f62cf.tar.gz |
Fix capitalization of confirmation messages for btn-danger buttons and fa-trash icons
Value and title were converted to lower case but not textContent. Consequently some pop-up messages included capitalized words, for example in the Log Settings page ("Are you sure you wish to Reset Log Files?").
(cherry picked from commit 4db8128cb7d84e20ac33c7f8e543c6fbb0cd77dd)
Diffstat (limited to 'src/usr/local/www/js')
-rw-r--r-- | src/usr/local/www/js/pfSense.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/js/pfSense.js b/src/usr/local/www/js/pfSense.js index a745a14..4467ee1 100644 --- a/src/usr/local/www/js/pfSense.js +++ b/src/usr/local/www/js/pfSense.js @@ -176,7 +176,7 @@ $(function() { // the element value $('.btn-danger, .fa-trash').on('click', function(e){ if (!($(this).hasClass('no-confirm'))) { - var msg = $.trim(this.textContent); + var msg = $.trim(this.textContent).toLowerCase(); if (!msg) var msg = $.trim(this.value).toLowerCase(); |