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

Expiration and burn after reading works

This commit is contained in:
sam
2012-04-27 04:41:20 +07:00
parent 19480bc1f0
commit 1a46d998ac
76 changed files with 80 additions and 11750 deletions

View File

@ -28,11 +28,11 @@ $('button[type=submit]').click(function(e){
var data = {content: zerobin.encrypt(key, paste), expiration: expiration}
$.post('/paste/create', data)
.error(function() {
.error(function(error) {
alert('Paste could not be saved. Please try again later.');
})
.success(function(data) {
window.location = '/paste/' + data + '#' + key;
window.location = ('/paste/' + data['paste'] + '#' + key);
});
}