1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Reposition flash clipboard overflay on closing messages message. Prevent default behavior on click on message close button

This commit is contained in:
sam 2012-05-02 00:17:27 +07:00
parent 0dd2383893
commit fb075c1c0b

View File

@ -399,6 +399,13 @@ if (content && key) {
});
});
/* Remap the message close handler to include the clipboard
flash reposition */
$(".close").die().live('click') function(e){
e.preventDefault();
$(this).parent().fadeOut(function(){clip.reposition()});
});
/** Syntaxic coloration */
prettyPrint();
@ -484,7 +491,8 @@ $('#file-upload').mouseover(function(){
/* Alerts */
$(".close").live('click', function(){
$(".close").live('click', function(e){
e.preventDefault();
$(this).parent().fadeOut();
});