diff options
author | plumbeo <plumbeo@users.noreply.github.com> | 2016-12-17 18:41:26 +0100 |
---|---|---|
committer | plumbeo <plumbeo@users.noreply.github.com> | 2016-12-17 18:52:30 +0100 |
commit | 4db8128cb7d84e20ac33c7f8e543c6fbb0cd77dd (patch) | |
tree | a54a092461a7f4c45d31dd8f6c704d4bf63e07c1 /src/usr | |
parent | 07c812a56fa7a4418b94f4b0858a1b9169023f0b (diff) | |
download | pfsense-4db8128cb7d84e20ac33c7f8e543c6fbb0cd77dd.zip pfsense-4db8128cb7d84e20ac33c7f8e543c6fbb0cd77dd.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?").
Diffstat (limited to 'src/usr')
-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 8047d51..da33129 100644 --- a/src/usr/local/www/js/pfSense.js +++ b/src/usr/local/www/js/pfSense.js @@ -144,7 +144,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(); |