Skip to content

Commit

Permalink
fix(web): fixed discord settings not saving
Browse files Browse the repository at this point in the history
  • Loading branch information
tabarra committed Dec 21, 2021
1 parent e955a84 commit f46d94f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
author 'Tabarra'
description 'Remotely Manage & Monitor your GTA5 FiveM Server'
repository 'https://github.com/tabarra/txAdmin'
version '4.11.0'
version '4.12.0-dev'
ui_label 'txAdmin'

rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
Expand Down
3 changes: 1 addition & 2 deletions web/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,6 @@ <h2>Settings</h2>

const expandables = document.getElementsByClassName('expandable-textarea');
for (const el of expandables) {
console.log(el.name)
el.onkeyup = () =>{
el.textContent = el.textContent;
}
Expand Down Expand Up @@ -706,7 +705,7 @@ <h2>Settings</h2>
token: $('#frmDiscord-token').val().trim(),
announceChannel: $('#frmDiscord-announceChannel').val().trim(),
prefix: $('#frmDiscord-prefix').val().trim(),
statusMessage: dcStatusMsgEltextContent.trim(),
statusMessage: dcStatusMsgEl.textContent.trim(),
};
if (data.enabled && (!data.token.length || !data.prefix.length || !data.statusMessage.length)) {
return $.notify({ message: 'The fields with "*" are required when the bot is enabled.' }, { type: 'warning' });
Expand Down

0 comments on commit f46d94f

Please sign in to comment.