Make revision button glow on ctrl-s and increase duration

This commit is contained in:
Marcel Klehr 2013-03-28 16:39:33 +01:00
parent 59a9ff404d
commit 0ff5137da3
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}