Fix #767. Also cleanup some issues with browser navigation.

This commit is contained in:
Zixaphir 2014-07-17 13:10:29 -07:00
parent 757d86861e
commit 1d6853b478
9 changed files with 63 additions and 39 deletions

View File

@ -1,5 +1,5 @@
/*
* appchan x - Version 2.9.30 - 2014-06-22
* appchan x - Version 2.9.30 - 2014-07-17
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -188,6 +188,10 @@ UI = do ->
@parseEntry entry
@entries.push entry
rmEntry: (entry) =>
return unless (index = @entries.indexOf entry) > -1
@entries.splice index, 1
parseEntry: (entry) ->
{el, subEntries} = entry
$.addClass el, 'entry'

View File

@ -1356,8 +1356,8 @@ a.useremail:last-of-type {
.filtered-backlinks .filtered.backlink {
display: none;
}
.backlinks-position-lower-left .container,
.backlinks-position-lower-right .container {
.backlinks-position-lower-left .backlink-container,
.backlinks-position-lower-right .backlink-container {
max-width: 100%;
padding: 0 5px;
}
@ -1373,39 +1373,39 @@ a.useremail:last-of-type {
position: static;
padding-bottom: 0;
}
.backlinks-position-lower-right .reply .container,
.backlinks-position-lower-left .reply .container {
.backlinks-position-lower-right .reply .backlink-container,
.backlinks-position-lower-left .reply .backlink-container {
position: absolute;
bottom: 0;
padding: 0 5px;
}
.backlinks-position-lower-left .reply .container {
.backlinks-position-lower-left .reply .backlink-container {
left: 0;
}
.backlinks-position-lower-right .reply .container {
.backlinks-position-lower-right .reply .backlink-container {
right: 0;
}
.backlinks-position-lower-right .container::before,
.backlinks-position-lower-left .reply .container::before {
.backlinks-position-lower-right .backlink-container::before,
.backlinks-position-lower-left .reply .backlink-container::before {
content: 'REPLIES: ';
}
.container:empty {
.backlink-container:empty {
display: none;
}
.backlinks-position-lower-left #qp .container,
.backlinks-position-lower-left .inline .container,
.backlinks-position-lower-right .inline .container,
.backlinks-position-lower-right #qp .container {
.backlinks-position-lower-left #qp .backlink-container,
.backlinks-position-lower-left .inline .backlink-container,
.backlinks-position-lower-right .inline .backlink-container,
.backlinks-position-lower-right #qp .backlink-container {
position: static;
max-width: 100%;
}
.backlinks-position-lower-left #qp .container::before,
.backlinks-position-lower-left .inline .container::before,
.backlinks-position-lower-right #qp .container::before,
.backlinks-position-lower-right .inline .container::before {
.backlinks-position-lower-left #qp .backlink-container::before,
.backlinks-position-lower-left .inline .backlink-container::before,
.backlinks-position-lower-right #qp .backlink-container::before,
.backlinks-position-lower-right .inline .backlink-container::before {
content: '';
}
.backlinks-position-lower-right .inline .container {
.backlinks-position-lower-right .inline .backlink-container {
float: none;
}
/* Fixes text spoilers */

View File

@ -38,17 +38,17 @@ ImageLoader =
file = $.el if isImage then 'img' else 'video'
if Conf[replace]
if isVideo
file.alt = thumb.alt
file.dataset.md5 = thumb.dataset.md5
file.style.height = style.height
file.style.width = style.width
file.alt = thumb.alt
file.dataset.md5 = thumb.dataset.md5
file.style.height = style.height
file.style.width = style.width
file.style.maxHeight = style.maxHeight
file.style.maxWidth = style.maxWidth
file.loop = true
file.autoplay = Conf['Autoplay']
if Conf['Image Hover']
$.on file, 'mouseover', ImageHover.mouseover
file.loop = true
file.autoplay = Conf['Autoplay']
$.on file, 'mouseover', ImageHover.mouseover if Conf['Image Hover']
cb = =>
$.off file, 'load loadedmetadata', cb
# Replace the thumbnail once the file has finished loading.

View File

@ -79,7 +79,7 @@ ThreadUpdater =
@set 'timer', null
@set 'status', 'Offline'
$.event 'rmMenuEntry', @entry
Header.menu.rmEntry @entry
if Conf['Updater and Stats in Header']
Header.rmShortcut @dialog

View File

@ -52,8 +52,8 @@ QuoteBacklink =
$.add container, QuoteBacklink.buildBacklink @, post
$.add @nodes.info, container
buildBacklink: (quoted, quoter) ->
$.addClass quoted.nodes.post, 'quoted'
frag = QuoteBacklink.frag.cloneNode true
a = frag.lastElementChild
a.href = Build.path quoter.board.ID, quoter.thread.ID, quoter.ID

View File

@ -28,7 +28,7 @@ QuoteThreading =
input = $ 'input', @controls
$.off input, 'change', @toggle
$.event 'rmMenuEntry', @entry
Header.menu.rmEntry @entry
delete @enabled
delete @controls