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:
parent
0dd2383893
commit
fb075c1c0b
@ -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();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user