Merge pull request #1705 from ether/ctrl-s-top

dont use top, use the scheduler
pull/1710/merge
John McLear 2013-04-04 11:02:40 -07:00
commit 7805e83b7f
1 changed files with 1 additions and 1 deletions

View File

@ -3651,7 +3651,7 @@ function Ace2Inner(){
evt.preventDefault();
var originalBackground = parent.parent.$('#revisionlink').css("background")
parent.parent.$('#revisionlink').css({"background":"lightyellow"});
top.setTimeout(function(){
scheduler.setTimeout(function(){
parent.parent.$('#revisionlink').css({"background":originalBackground});
}, 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 */