Add some front-end debugging changes

(imported from commit 21684b09100bc0a24372948a9417c973709c1be2)
This commit is contained in:
Zev Benjamin
2013-10-30 13:38:16 -04:00
parent 2e6b3131b5
commit eb7fd1ba51
2 changed files with 10 additions and 0 deletions

View File

@@ -173,6 +173,10 @@ MessageList.prototype = {
{table_name: this.table_name, id: id});
}
if (closest_id === -1) {
blueslip.fatal("Cannot select id -1", {table_name: this.table_name});
}
id = closest_id;
opts.id = id;
this._selected_id = id;