mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
Fix paste link overlay bug
This commit is contained in:
@ -135,9 +135,6 @@ if (content && key) {
|
||||
|
||||
if (!error) {
|
||||
|
||||
ZeroClipboard.setMoviePath('/static/js/ZeroClipboard.swf' );
|
||||
var clip = new ZeroClipboard.Client();
|
||||
|
||||
$('#short-url').click(function(e) {
|
||||
e.preventDefault();
|
||||
$('#short-url').text('Loading short url...');
|
||||
@ -154,6 +151,8 @@ if (content && key) {
|
||||
prettyPrint();
|
||||
|
||||
/* Setup flash clipboard button */
|
||||
ZeroClipboard.setMoviePath('/static/js/ZeroClipboard.swf' );
|
||||
var clip = new ZeroClipboard.Client();
|
||||
|
||||
clip.addEventListener('onMouseUp', function(){
|
||||
clip.setText($('#paste-content').text());
|
||||
|
@ -22,11 +22,12 @@
|
||||
<div class="well paste-form">
|
||||
<form action="/" method="get" accept-charset="utf-8">
|
||||
<p>
|
||||
<a id="short-url" href=""
|
||||
target="_blank">Get short url</a> |
|
||||
<span id="clip-container" style="position:relative">
|
||||
<a id="clip-button">Copy To Clipboard</a>
|
||||
</span>
|
||||
</span> |
|
||||
<a id="short-url" href=""
|
||||
target="_blank">Get short url</a>
|
||||
|
||||
<span class="paste-option btn-group top">
|
||||
<button class="btn btn-clone"><i class="icon-camera"></i> Clone</button>
|
||||
<button class="btn">New Paste</button>
|
||||
|
Reference in New Issue
Block a user