diff --git a/js/zerobin.js b/js/zerobin.js index 54073407..71bea9d5 100644 --- a/js/zerobin.js +++ b/js/zerobin.js @@ -623,6 +623,7 @@ $(function(){ var url = parent.scriptLocation() + '?' + data.id + '#' + randomkey; var deleteUrl = parent.scriptLocation() + '?pasteid=' + data.id + '&deletetoken=' + data.deletetoken; parent.showStatus('', false); + parent.errorMessage.addClass('hidden'); $('#pastelink').html('Your paste is ' + url + ' (Hit CTRL+C to copy)'); $('#deletelink').html('Delete data'); @@ -786,7 +787,9 @@ $(function(){ } else { - this.errorMessage.removeClass('hidden').append(message); + this.errorMessage.removeClass('hidden'); + var content = this.errorMessage.contents(); + content[content.length - 1].nodeValue = message; } this.replyStatus.addClass('errorMessage').text(message); },