mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
might be useful some time
This commit is contained in:
parent
23e72797bc
commit
12986da147
|
@ -679,6 +679,7 @@ var toast = (function () {
|
||||||
obj.setAttribute('id', 'toast');
|
obj.setAttribute('id', 'toast');
|
||||||
document.body.appendChild(obj);
|
document.body.appendChild(obj);
|
||||||
r.visible = false;
|
r.visible = false;
|
||||||
|
r.txt = null;
|
||||||
|
|
||||||
r.hide = function (e) {
|
r.hide = function (e) {
|
||||||
ev(e);
|
ev(e);
|
||||||
|
@ -698,6 +699,7 @@ var toast = (function () {
|
||||||
obj.className += ' vis';
|
obj.className += ' vis';
|
||||||
ebi('toastc').onclick = r.hide;
|
ebi('toastc').onclick = r.hide;
|
||||||
r.visible = true;
|
r.visible = true;
|
||||||
|
r.txt = txt;
|
||||||
};
|
};
|
||||||
|
|
||||||
r.ok = function (ms, txt) {
|
r.ok = function (ms, txt) {
|
||||||
|
|
Loading…
Reference in a new issue