diff options
author | John McLear <john@mclear.co.uk> | 2013-03-28 02:24:59 +0000 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2013-03-28 02:24:59 +0000 |
commit | c48917720699fb1e4b304a464978f016f1967531 (patch) | |
tree | f58fe6f04767b91a64b1847088a5515e17c83a1c /src/static | |
parent | 6b55d13370f1057e117178c46807a59bd679de29 (diff) | |
download | etherpad-lite-c48917720699fb1e4b304a464978f016f1967531.zip |
show light yellow for .5 secs on save revision keypress
Diffstat (limited to 'src/static')
-rw-r--r-- | src/static/js/ace2_inner.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index fc69d592..e00d2ee7 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -3649,6 +3649,11 @@ function Ace2Inner(){ if ((!specialHandled) && isTypeForCmdKey && String.fromCharCode(which).toLowerCase() == "s" && (evt.metaKey || evt.ctrlKey)) /* Do a saved revision on ctrl S */ { evt.preventDefault(); + var originalBackground = parent.parent.$('#revisionlink').css("background") + parent.parent.$('#revisionlink').css({"background":"lightyellow"}); + setTimeout(function(){ + parent.parent.$('#revisionlink').css({"background":originalBackground}); + }, 500); parent.parent.pad.collabClient.sendMessage({"type":"SAVE_REVISION"}); /* The parent.parent part of this is BAD and I feel bad.. It may break something */ specialHandled = true; } |