From b05925febcabb4caa5e1f5d4503f7ddd23708b26 Mon Sep 17 00:00:00 2001 From: julian laplace Date: Wed, 26 Oct 2022 18:52:52 +0200 Subject: upgrade knex and bookshelf and fix thread/keyword apis --- public/assets/js/lib/views/stream/hootstream.js | 3 ++- public/assets/js/vendor/view/router.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'public/assets/js') diff --git a/public/assets/js/lib/views/stream/hootstream.js b/public/assets/js/lib/views/stream/hootstream.js index 47ed2b9..bfdf5d1 100644 --- a/public/assets/js/lib/views/stream/hootstream.js +++ b/public/assets/js/lib/views/stream/hootstream.js @@ -42,6 +42,7 @@ var HootStream = View.extend({ // console.log(data, threadLookup, order); const $els = order.map( function (item) { + // console.log(item.type, item.thread_id); return item.type === "thread" ? this.renderThread(threadLookup[item.thread_id]).reduce( ($el, $item) => $el.append($item), @@ -59,7 +60,7 @@ var HootStream = View.extend({ render: (template, object) => { if (!template) { - console.log("No template", object); + console.error("No template", object); return $("
No template
"); } const rendered = Object.entries(object).reduce( diff --git a/public/assets/js/vendor/view/router.js b/public/assets/js/vendor/view/router.js index 3fc3357..ad60467 100644 --- a/public/assets/js/vendor/view/router.js +++ b/public/assets/js/vendor/view/router.js @@ -6,7 +6,7 @@ var Router = View.extend({ }, onpopstate: (event) => { - console.log("POP STATE", document.location.pathname); + // console.log("POP STATE", document.location.pathname); app.router.parseRoute(document.location.pathname); }, @@ -18,7 +18,7 @@ var Router = View.extend({ if (this.routeByHash) { window.location.hash = url; } else if (window.history) { - console.log(url); + // console.log(url); window.history.pushState(null, null, url); } }, -- cgit v1.2.3-70-g09d2