Skip to content

Commit cf7e245

Browse files
committed
Merge branch 'master' of github.com:KartikTalwar/gmail.js into thread-observer
2 parents 8227633 + d0c995e commit cf7e245

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/gmail.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,23 @@ var Gmail = function() {
863863
}
864864

865865

866+
api.tools.infobox = function(message, time){
867+
var top = $(".b8.UC");
868+
if(top.length > 0){
869+
var info = top.find(".vh");
870+
info.text(message);
871+
if(typeof time !== "undefined"){
872+
top.css('visibility', 'visible').fadeTo(time, 0, function(){
873+
$(this).css("visibility", "hidden");
874+
$(this).css("opacity", "");
875+
});
876+
}
877+
else{
878+
top.css('visibility', 'visible');
879+
}
880+
}
881+
}
882+
866883
api.tools.parse_email_data = function(email_data) {
867884
var data = {};
868885
var threads = {}

0 commit comments

Comments
 (0)