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

Former-commit-id: b24977be1bb118c14e9db3a44a2bebdc9edf9a8f [formerly 2ce16a65abe48ec000f4c4a4cc05bb38b381c916] [formerly d9c16d365414314ce1d09283200c41a5441e9e6b [formerly fe774bce48]]
Former-commit-id: 9a9c9b214ebfbbe7766faf0be65c818077dc3673 [formerly c49e25e78efadac5030cbd7e957d169d635a4776]
Former-commit-id: 23993ccf920b06228c8403923bf99f3119caafcb
This commit is contained in:
Zack Scholl 2016-06-29 20:06:07 -04:00
parent d49f231f83
commit cd08f25300
2 changed files with 10 additions and 0 deletions

View File

@ -87,4 +87,12 @@ $(document).ready(function() {
// updateText();
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><a href="#" class="postencrypt">Encrypt</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>
</ul>
</li>
@ -240,6 +241,7 @@
$('.postlock').click(function(event) {
var pass1 = "";
var pass2 = "";