Skip to content

Commit d0c995e

Browse files
committed
Merge pull request #52 from GeneralZero/patch-3
Add function to show errors and information.
2 parents 6e05b15 + 73db726 commit d0c995e

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
@@ -846,6 +846,23 @@ var Gmail = function() {
846846
}
847847

848848

849+
api.tools.infobox = function(message, time){
850+
var top = $(".b8.UC");
851+
if(top.length > 0){
852+
var info = top.find(".vh");
853+
info.text(message);
854+
if(typeof time !== "undefined"){
855+
top.css('visibility', 'visible').fadeTo(time, 0, function(){
856+
$(this).css("visibility", "hidden");
857+
$(this).css("opacity", "");
858+
});
859+
}
860+
else{
861+
top.css('visibility', 'visible');
862+
}
863+
}
864+
}
865+
849866
api.tools.parse_email_data = function(email_data) {
850867
var data = {};
851868
var threads = {}

0 commit comments

Comments
 (0)