jeroenbos22 / homey.better.voice

Correct Homey voice-commands by learning word replacements
1 stars 1 forks source link

'succesfully saved' message #4

Open OpenMindNL opened 7 years ago

OpenMindNL commented 7 years ago

Already wrote this under comments, but this is a better place...

function save(){ $('.saved').hide(); ........ setTimeout(function() { $('.saved').show(); }, 500);

Change places for hide and show. This will make the message appear when the save-button is clicked, and dissappear after 0.5 seconds.

In the current version the message appears 0.5 seconds after you click the button and it does not dissappear anymore. ;)

jeroenbos22 commented 7 years ago

Thanx for sharing! :)