Merge branch 'v3' of https://github.com/zixaphir/appchan-x
This commit is contained in:
commit
b69dfd5921
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -331,6 +331,10 @@ Config =
|
||||
true
|
||||
'Add \'(You)\' to quotes linking to your posts.'
|
||||
]
|
||||
'Quoted Title': [
|
||||
'Change the page title to reflect you\'ve been quoted.'
|
||||
false
|
||||
]
|
||||
'Highlight Posts Quoting You': [
|
||||
false
|
||||
'Highlights any posts that contain a quote to your post.'
|
||||
|
||||
@ -311,7 +311,7 @@ Settings =
|
||||
section.innerHTML = """
|
||||
<%= grunt.file.read('src/General/html/Settings/Advanced.html').replace(/>\s+</g, '><').trim() %>
|
||||
"""
|
||||
items = {}
|
||||
items = {}
|
||||
inputs = {}
|
||||
for name in ['boardnav', 'time', 'backlink', 'fileInfo', 'favicon', 'sageEmoji', 'emojiPos', 'usercss']
|
||||
input = $ "[name=#{name}]", section
|
||||
@ -346,14 +346,13 @@ Settings =
|
||||
boards = {}
|
||||
for name, archive of Redirect.archives
|
||||
for boardID in archive.boards
|
||||
data = boards[boardID] or= {
|
||||
data = boards[boardID] or=
|
||||
thread: []
|
||||
post: []
|
||||
file: []
|
||||
}
|
||||
data.thread.push name
|
||||
data.post.push name if archive.software is 'foolfuuka'
|
||||
data.file.push name if archive.files.contains boardID
|
||||
data.post.push name if archive.software is 'foolfuuka'
|
||||
data.file.push name if archive.files.contains boardID
|
||||
|
||||
rows = []
|
||||
boardOptions = []
|
||||
@ -361,7 +360,6 @@ Settings =
|
||||
row = $.el 'tr',
|
||||
className: "board-#{boardID}"
|
||||
row.hidden = boardID isnt g.BOARD.ID
|
||||
rows.push row
|
||||
|
||||
boardOptions.push $.el 'option',
|
||||
textContent: "/#{boardID}/"
|
||||
@ -369,11 +367,9 @@ Settings =
|
||||
selected: boardID is g.BOARD.ID
|
||||
|
||||
data = boards[boardID]
|
||||
$.add row, [
|
||||
Settings.addArchiveCell boardID, data, 'thread'
|
||||
Settings.addArchiveCell boardID, data, 'post'
|
||||
Settings.addArchiveCell boardID, data, 'file'
|
||||
]
|
||||
$.add row, Settings.addArchiveCell boardID, data, item for item in ['thread', 'post', 'file']
|
||||
rows.push row
|
||||
|
||||
$.add $('tbody', section), rows
|
||||
|
||||
boardSelect = $('#archive-board-select', section)
|
||||
|
||||
@ -151,7 +151,7 @@ Unread =
|
||||
count = Unread.posts.length
|
||||
|
||||
if Conf['Unread Count']
|
||||
d.title = "#{if count or !Conf['Hide Unread Count at (0)'] then "(#{count}) " else ''}#{if g.DEAD then "/#{g.BOARD}/ - 404" else "#{Unread.title}"}"
|
||||
d.title = "#{if Conf['Quoted Title'] and Unread.postsQuotingYou.length then '(!) ' else ''}#{if count or !Conf['Hide Unread Count at (0)'] then "(#{count}) " else ''}#{if g.DEAD then "/#{g.BOARD}/ - 404" else "#{Unread.title}"}"
|
||||
<% if (type === 'crx') { %>
|
||||
# XXX Chrome bug where it doesn't always update the tab title.
|
||||
# crbug.com/124381
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user