Merge pull request #1952 from minrk/wsclose

avoid duplicate "Websockets closed" dialog on ws close
This commit is contained in:
Min RK 2012-06-15 01:54:04 -07:00
commit 5a57dc5a1a

View File

@ -98,8 +98,10 @@ var IPython = (function (IPython) {
" or if the url does not look right, there could be an error in the" +
" server's configuration.";
} else {
this.start_channels();
}
IPython.notification_widget.set_message('Reconnecting Websockets', 1000);
this.start_channels();
return;
}
var dialog = $('<div/>');
dialog.html(msg);
parent_item.append(dialog);