fix #45
This commit is contained in:
parent
d149f351d2
commit
47eef04643
4 changed files with 39 additions and 20 deletions
|
@ -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')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue