Skip to content
Snippets Groups Projects
Commit 98038ce7 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Formatted everything

parent 0c981313
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,9 @@ var add_to_history = function (query) {
if (!query)
return;
var history = get_history().filter(function (x) { return x != query; });
var history = get_history().filter(function (x) {
return x != query;
});
history.push(query);
history = history.slice(Math.max(0, history.length - max_history_size));
localStorage.setItem('history', JSON.stringify(history));
......@@ -233,7 +235,9 @@ var attach_context = function (elem) {
console.log("Undefined buffer: " + bufferid);
}
elem.click(wrap_click_handler(function (e) {e.stopPropagation(); }));
elem.click(wrap_click_handler(function (e) {
e.stopPropagation();
}));
$("#message" + buffers[bufferid].contexts[id].original.messageid).click(wrap_click_handler(make_toggle_context(bufferid, id)));
elem.find(".load_before").click(wrap_click_handler(function (e) {
earlier(bufferid, id, 5);
......@@ -464,7 +468,6 @@ var sort_messages = function (arr) {
update_history();
$("body").click(function (e) {
if (open.length)
open[open.length - 1](e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment