Hide error message when paste is posted correctly
This commit is contained in:
parent
9687144c92
commit
d74172064b
@ -396,7 +396,7 @@ function send_data() {
|
|||||||
var url = scriptLocation() + "?" + data.id + '#' + randomkey;
|
var url = scriptLocation() + "?" + data.id + '#' + randomkey;
|
||||||
var deleteUrl = scriptLocation() + "?pasteid=" + data.id + '&deletetoken=' + data.deletetoken;
|
var deleteUrl = scriptLocation() + "?pasteid=" + data.id + '&deletetoken=' + data.deletetoken;
|
||||||
showStatus('');
|
showStatus('');
|
||||||
|
$('#errormessage').addClass('hidden');
|
||||||
$('#pastelink').html('Your paste is <a id="pasteurl" href="' + url + '">' + url + '</a> <span id="copyhint">(Hit CTRL+C to copy)</span>');
|
$('#pastelink').html('Your paste is <a id="pasteurl" href="' + url + '">' + url + '</a> <span id="copyhint">(Hit CTRL+C to copy)</span>');
|
||||||
$('#deletelink').html('<a href="' + deleteUrl + '">Delete data</a>');
|
$('#deletelink').html('<a href="' + deleteUrl + '">Delete data</a>');
|
||||||
$('#pasteresult').removeClass('hidden');
|
$('#pasteresult').removeClass('hidden');
|
||||||
|
Loading…
Reference in New Issue
Block a user