From 0ff5137da3b1b6396e1b489cee90525664b9188d Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Thu, 28 Mar 2013 16:39:33 +0100 Subject: [PATCH] Make revision button glow on ctrl-s and increase duration --- src/static/js/ace2_inner.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 1ab026efb..cbae0be90 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -3650,10 +3650,10 @@ function Ace2Inner(){ { evt.preventDefault(); var originalBackground = parent.parent.$('#revisionlink').css("background") - parent.parent.$('#revisionlink').css({"background":"lightyellow"}); + parent.parent.$('#revisionlink').css({"background":"lightyellow", 'box-shadow': '0 0 50px yellow'}); top.setTimeout(function(){ - parent.parent.$('#revisionlink').css({"background":originalBackground}); - }, 500); + parent.parent.$('#revisionlink').css({"background":originalBackground, 'box-shadow': 'none'}); + }, 1000); 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; }