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

self-destruct works to Fix #48

This commit is contained in:
Zack Scholl 2016-06-29 20:06:07 -04:00
parent 705cdf8b87
commit fe774bce48
2 changed files with 10 additions and 0 deletions

View File

@ -87,4 +87,12 @@ $(document).ready(function() {
// updateText(); // updateText();
updateInterval = setInterval(updateText, pollToGetNewestCopyInterval); updateInterval = setInterval(updateText, pollToGetNewestCopyInterval);
} }
$('.postselfdestruct').click(function(event) {
event.preventDefault();
$('#emit_data').val("self-destruct\n\n"+currentText());
doneTyping();
});
}); });

View File

@ -119,6 +119,7 @@
<li class="dropdown-header">Options</li> <li class="dropdown-header">Options</li>
<li><a href="#" class="postencrypt">Encrypt</a></li> <li><a href="#" class="postencrypt">Encrypt</a></li>
<li><a href="#" class="postlock">Lock</a></li> <li><a href="#" class="postlock">Lock</a></li>
<li><a href="#" class="postselfdestruct">Self-dstruct</a></li>
<li><a href="#" id="{{ .Title }}" class="deleteable">Erase</a></li> <li><a href="#" id="{{ .Title }}" class="deleteable">Erase</a></li>
</ul> </ul>
</li> </li>
@ -240,6 +241,7 @@
$('.postlock').click(function(event) { $('.postlock').click(function(event) {
var pass1 = ""; var pass1 = "";
var pass2 = ""; var pass2 = "";