remove old error messages on stream change

This commit is contained in:
Hannes Mannerheim 2015-09-29 17:05:20 +02:00
parent 6149e736d7
commit 66728fb136

View File

@ -521,13 +521,14 @@ function setNewCurrentStream(streamObject,setLocation,fallbackId,actionOnSuccess
return;
}
// remove any old error messages
$('.error-message').remove();
// remember state of old stream (including profile card)
if(typeof window.currentStreamObject != 'undefined') {
localStorageObjectCache_STORE('streamState',window.currentStreamObject.path, $('#feed').siblings('.profile-card').outerHTML() + $('#feed').outerHTML());
}
// window.oldStreams[window.currentStream] = $('#feed').siblings('.profile-card').outerHTML() + $('#feed').outerHTML();
// halt interval that checks for new queets
window.clearInterval(checkForNewQueetsInterval);