1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 08:08:00 +01:00
This commit is contained in:
Kris Maglione
2008-09-11 20:50:32 +00:00
parent 88ed44450f
commit fc36dcf01e
2 changed files with 15 additions and 30 deletions

View File

@@ -878,20 +878,16 @@ liberator.Editor = function () //{{{
}
// }
// blink the textbox after returning - TODO: could use setInterval
// blink the textbox after returning
if (textBox)
{
var timeout = 100;
textBox.style.backgroundColor = tmpBg;
setTimeout(function () {
textBox.style.backgroundColor = oldBg;
setTimeout(function () {
textBox.style.backgroundColor = tmpBg;
setTimeout(function () {
textBox.style.backgroundColor = oldBg;
}, timeout);
}, timeout);
}, timeout);
var colors = [tmpBg, oldBg, tmpBg, oldBg];
(function() {
textBox.style.backgroundColor = colors.shift();
if(colors.length > 0)
setTimeout(arguments.callee, timeout)
})();
}
tmpfile.remove(false);