mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
added clone option
This commit is contained in:
parent
59f7b9bb56
commit
b6309e0244
|
@ -175,7 +175,7 @@ $('.previous-pastes .items').html(zerobin.get_pastes());
|
||||||
/* clone a paste */
|
/* clone a paste */
|
||||||
$('.btn-clone').click(function(e){
|
$('.btn-clone').click(function(e){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
content_clone = '' ;
|
var content_clone = '' ;
|
||||||
$("#paste-content li").each(function(index) {
|
$("#paste-content li").each(function(index) {
|
||||||
content_clone = content_clone + $(this).text() + '\n';
|
content_clone = content_clone + $(this).text() + '\n';
|
||||||
});
|
});
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
The paste is now in your clipboad
|
The paste is now in your clipboad
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="well">
|
<div class="well paste-form">
|
||||||
<form action="/" method="get" accept-charset="utf-8">
|
<form action="/" method="get" accept-charset="utf-8">
|
||||||
<p>
|
<p>
|
||||||
<span id="clip-container" style="position:relative">
|
<span id="clip-container" style="position:relative">
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="paste-option btn-group bottom">
|
<p class="paste-option btn-group bottom">
|
||||||
<button class="btn"><i class="icon-camera"></i> Clone</button>
|
<button class="btn btn-clone"><i class="icon-camera"></i> Clone</button>
|
||||||
<button class="btn">New Paste</button>
|
<button class="btn">New Paste</button>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user