This commit is contained in:
Kevin Froman 2020-02-12 01:19:59 -06:00
parent d149f351d2
commit 47eef04643
4 changed files with 39 additions and 20 deletions

View file

@ -17,14 +17,12 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
var setCloseSettingsModal = function(){
var closeButtonElements = document.getElementsByClassName('closeSettingsModal')
for (i = 0; i < closeButtonElements; i++){
closeButtonElements[i].onclick = function(){
document.getElementById('settingsModal').classList.remove('is-active')
}
}
document.getElementById('closeSettingsModalButton').onclick = function(){
document.getElementById('settingsModal').classList.remove('is-active')
setActiveTab('inbox')
}
setCloseSettingsModal()
document.querySelector("#settingsModal .modal-background").onclick = function(){
document.getElementById('settingsModal').classList.remove('is-active')
setActiveTab('inbox')
}