From fba3d2d18e43886a7604c971b46d317415528442 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 25 Jul 2019 19:48:06 -0700 Subject: [PATCH] Make HTML templates output Javascript, part 3. #829 --- src/Filtering/Filter.coffee | 2 +- src/Filtering/ThreadHiding.coffee | 2 +- src/General/Header.coffee | 10 +++--- src/General/Index.coffee | 6 ++-- src/General/Settings.coffee | 32 +++++++++---------- src/Images/Gallery.coffee | 4 +-- src/Images/ImageExpand.coffee | 2 +- src/Images/ImageLoader.coffee | 2 +- src/Images/Metadata.coffee | 2 +- src/Images/Volume.coffee | 2 +- src/Linkification/Embedding.coffee | 6 ++-- src/Menu/DeleteLink.coffee | 2 +- src/Menu/Menu.coffee | 2 +- src/Miscellaneous/FileInfo.coffee | 38 +++++++++++----------- src/Miscellaneous/ModContact.coffee | 14 ++++---- src/Miscellaneous/PostJumper.coffee | 2 +- src/Miscellaneous/Report.coffee | 2 +- src/Monitoring/ReplyPruning.coffee | 2 +- src/Monitoring/ThreadStats.coffee | 6 ++-- src/Monitoring/ThreadUpdater.coffee | 8 ++--- src/Monitoring/ThreadWatcher.coffee | 4 +-- src/Posting/Captcha.v2.coffee | 4 +-- src/Posting/PassLink.coffee | 2 +- src/Posting/QR.coffee | 12 +++---- src/Posting/QR.post.coffee | 4 +-- src/Quotelinks/QuoteThreading.coffee | 4 +-- src/Quotelinks/QuoteYou.coffee | 2 +- src/classes/Fetcher.coffee | 48 ++++++++++++++-------------- src/classes/Notice.coffee | 2 +- src/main/Main.coffee | 12 +++---- src/platform/$.coffee | 2 +- src/site/SW.yotsuba.Build.coffee | 10 +++--- tools/template.js | 2 +- 33 files changed, 127 insertions(+), 127 deletions(-) diff --git a/src/Filtering/Filter.coffee b/src/Filtering/Filter.coffee index ba09d260fa..abdd13b350 100644 --- a/src/Filtering/Filter.coffee +++ b/src/Filtering/Filter.coffee @@ -283,7 +283,7 @@ Filter = $('span', notice.el).textContent = "#{notice.filters.length} MD5s filtered." else msg = $.el 'div', - <%= html('MD5 filtered. [show] [undo]') %> + `<%= html('MD5 filtered. [show] [undo]') %>` notice = Filter.quickFilterMD5.notice = new Notice 'info', msg, undefined, -> delete Filter.quickFilterMD5.notice notice.filters = [filter] diff --git a/src/Filtering/ThreadHiding.coffee b/src/Filtering/ThreadHiding.coffee index 4e250227af..d56318517d 100644 --- a/src/Filtering/ThreadHiding.coffee +++ b/src/Filtering/ThreadHiding.coffee @@ -139,7 +139,7 @@ ThreadHiding = a = $.el 'a', className: "#{type}-thread-button" href: 'javascript:;' - $.extend a, <%= html('') %> + $.extend a, `<%= html('') %>` a.dataset.fullID = thread.fullID $.on a, 'click', ThreadHiding.toggle a diff --git a/src/General/Header.coffee b/src/General/Header.coffee index 054d5ba8ce..6654b2fe12 100644 --- a/src/General/Header.coffee +++ b/src/General/Header.coffee @@ -11,7 +11,7 @@ Header = menuButton = $.el 'span', className: 'menu-button' - $.extend menuButton, <%= html('') %> + $.extend menuButton, `<%= html('') %>` box = UI.checkbox @@ -142,7 +142,7 @@ Header = setBoardList: -> Header.boardList = boardList = $.el 'span', id: 'board-list' - $.extend boardList, <%= html( + $.extend boardList, `<%= html( '' + '