Mercurial > xmpp-account-manager
comparison util.js @ 15:3eed9fe0bd7c
End spinners with either a green ✔ or a red ✘.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 22 Dec 2018 18:38:27 +0100 |
parents | 5e97e1808a35 |
children | 07543f7f5e89 |
comparison
equal
deleted
inserted
replaced
14:962f64b156dd | 15:3eed9fe0bd7c |
---|---|
39 .c('value') | 39 .c('value') |
40 .t(value) | 40 .t(value) |
41 .up() | 41 .up() |
42 .up(); | 42 .up(); |
43 } | 43 } |
44 | |
45 function displaySpinner(spinner) { | |
46 spinner.src = 'spinner.svg'; | |
47 spinner.hidden = false; | |
48 } | |
49 | |
50 function spinnerOk(spinner) { | |
51 spinner.src = 'ok.svg'; | |
52 spinner.hidden = false; | |
53 setTimeout(function () { | |
54 spinner.hidden = true; | |
55 }, 1000); | |
56 } | |
57 | |
58 function spinnerError(spinner) { | |
59 spinner.src = 'error.svg'; | |
60 spinner.hidden = false; | |
61 } | |
62 | |
63 function hideSpinner(spinner) { | |
64 spinner.hidden = true; | |
65 } |