Only empty the message list DOM on reload

We are seeing error on CUSTOMER4 when clearing the DOM on reload. So
now we will only clear the message list.

(imported from commit f5d8d7d36cd1018f7def73ff9eda414387fcec5c)
This commit is contained in:
Jason Michalski 2014-03-13 17:49:58 -04:00 committed by Leo Franchi
parent c5993c2d2d
commit fa440d0be2
1 changed files with 2 additions and 2 deletions

View File

@ -140,8 +140,8 @@ function cleanup_before_reload() {
// Abort all pending ajax requests`
channel.abort_all();
// Free all of the DOM
$("html").empty();
// Free all the DOM in the main_div
$("#main_div").empty();
// Now that the DOM is empty our beforeunload callback has been
// removed.