Fix #767. Also cleanup some issues with browser navigation.
This commit is contained in:
parent
757d86861e
commit
1d6853b478
2
LICENSE
2
LICENSE
@ -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.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/zixaphir/appchan-x/blob/master/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
@ -188,6 +188,10 @@ UI = do ->
|
|||||||
@parseEntry entry
|
@parseEntry entry
|
||||||
@entries.push entry
|
@entries.push entry
|
||||||
|
|
||||||
|
rmEntry: (entry) =>
|
||||||
|
return unless (index = @entries.indexOf entry) > -1
|
||||||
|
@entries.splice index, 1
|
||||||
|
|
||||||
parseEntry: (entry) ->
|
parseEntry: (entry) ->
|
||||||
{el, subEntries} = entry
|
{el, subEntries} = entry
|
||||||
$.addClass el, 'entry'
|
$.addClass el, 'entry'
|
||||||
|
|||||||
@ -1356,8 +1356,8 @@ a.useremail:last-of-type {
|
|||||||
.filtered-backlinks .filtered.backlink {
|
.filtered-backlinks .filtered.backlink {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.backlinks-position-lower-left .container,
|
.backlinks-position-lower-left .backlink-container,
|
||||||
.backlinks-position-lower-right .container {
|
.backlinks-position-lower-right .backlink-container {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
}
|
}
|
||||||
@ -1373,39 +1373,39 @@ a.useremail:last-of-type {
|
|||||||
position: static;
|
position: static;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
}
|
}
|
||||||
.backlinks-position-lower-right .reply .container,
|
.backlinks-position-lower-right .reply .backlink-container,
|
||||||
.backlinks-position-lower-left .reply .container {
|
.backlinks-position-lower-left .reply .backlink-container {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
}
|
}
|
||||||
.backlinks-position-lower-left .reply .container {
|
.backlinks-position-lower-left .reply .backlink-container {
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
.backlinks-position-lower-right .reply .container {
|
.backlinks-position-lower-right .reply .backlink-container {
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
.backlinks-position-lower-right .container::before,
|
.backlinks-position-lower-right .backlink-container::before,
|
||||||
.backlinks-position-lower-left .reply .container::before {
|
.backlinks-position-lower-left .reply .backlink-container::before {
|
||||||
content: 'REPLIES: ';
|
content: 'REPLIES: ';
|
||||||
}
|
}
|
||||||
.container:empty {
|
.backlink-container:empty {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.backlinks-position-lower-left #qp .container,
|
.backlinks-position-lower-left #qp .backlink-container,
|
||||||
.backlinks-position-lower-left .inline .container,
|
.backlinks-position-lower-left .inline .backlink-container,
|
||||||
.backlinks-position-lower-right .inline .container,
|
.backlinks-position-lower-right .inline .backlink-container,
|
||||||
.backlinks-position-lower-right #qp .container {
|
.backlinks-position-lower-right #qp .backlink-container {
|
||||||
position: static;
|
position: static;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
.backlinks-position-lower-left #qp .container::before,
|
.backlinks-position-lower-left #qp .backlink-container::before,
|
||||||
.backlinks-position-lower-left .inline .container::before,
|
.backlinks-position-lower-left .inline .backlink-container::before,
|
||||||
.backlinks-position-lower-right #qp .container::before,
|
.backlinks-position-lower-right #qp .backlink-container::before,
|
||||||
.backlinks-position-lower-right .inline .container::before {
|
.backlinks-position-lower-right .inline .backlink-container::before {
|
||||||
content: '';
|
content: '';
|
||||||
}
|
}
|
||||||
.backlinks-position-lower-right .inline .container {
|
.backlinks-position-lower-right .inline .backlink-container {
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
/* Fixes text spoilers */
|
/* Fixes text spoilers */
|
||||||
|
|||||||
@ -38,17 +38,17 @@ ImageLoader =
|
|||||||
file = $.el if isImage then 'img' else 'video'
|
file = $.el if isImage then 'img' else 'video'
|
||||||
if Conf[replace]
|
if Conf[replace]
|
||||||
if isVideo
|
if isVideo
|
||||||
|
file.alt = thumb.alt
|
||||||
file.alt = thumb.alt
|
file.dataset.md5 = thumb.dataset.md5
|
||||||
file.dataset.md5 = thumb.dataset.md5
|
file.style.height = style.height
|
||||||
file.style.height = style.height
|
file.style.width = style.width
|
||||||
file.style.width = style.width
|
|
||||||
file.style.maxHeight = style.maxHeight
|
file.style.maxHeight = style.maxHeight
|
||||||
file.style.maxWidth = style.maxWidth
|
file.style.maxWidth = style.maxWidth
|
||||||
file.loop = true
|
file.loop = true
|
||||||
file.autoplay = Conf['Autoplay']
|
file.autoplay = Conf['Autoplay']
|
||||||
if Conf['Image Hover']
|
|
||||||
$.on file, 'mouseover', ImageHover.mouseover
|
$.on file, 'mouseover', ImageHover.mouseover if Conf['Image Hover']
|
||||||
|
|
||||||
cb = =>
|
cb = =>
|
||||||
$.off file, 'load loadedmetadata', cb
|
$.off file, 'load loadedmetadata', cb
|
||||||
# Replace the thumbnail once the file has finished loading.
|
# Replace the thumbnail once the file has finished loading.
|
||||||
|
|||||||
@ -79,7 +79,7 @@ ThreadUpdater =
|
|||||||
@set 'timer', null
|
@set 'timer', null
|
||||||
@set 'status', 'Offline'
|
@set 'status', 'Offline'
|
||||||
|
|
||||||
$.event 'rmMenuEntry', @entry
|
Header.menu.rmEntry @entry
|
||||||
|
|
||||||
if Conf['Updater and Stats in Header']
|
if Conf['Updater and Stats in Header']
|
||||||
Header.rmShortcut @dialog
|
Header.rmShortcut @dialog
|
||||||
|
|||||||
@ -52,8 +52,8 @@ QuoteBacklink =
|
|||||||
$.add container, QuoteBacklink.buildBacklink @, post
|
$.add container, QuoteBacklink.buildBacklink @, post
|
||||||
$.add @nodes.info, container
|
$.add @nodes.info, container
|
||||||
|
|
||||||
|
|
||||||
buildBacklink: (quoted, quoter) ->
|
buildBacklink: (quoted, quoter) ->
|
||||||
|
$.addClass quoted.nodes.post, 'quoted'
|
||||||
frag = QuoteBacklink.frag.cloneNode true
|
frag = QuoteBacklink.frag.cloneNode true
|
||||||
a = frag.lastElementChild
|
a = frag.lastElementChild
|
||||||
a.href = Build.path quoter.board.ID, quoter.thread.ID, quoter.ID
|
a.href = Build.path quoter.board.ID, quoter.thread.ID, quoter.ID
|
||||||
|
|||||||
@ -28,7 +28,7 @@ QuoteThreading =
|
|||||||
input = $ 'input', @controls
|
input = $ 'input', @controls
|
||||||
$.off input, 'change', @toggle
|
$.off input, 'change', @toggle
|
||||||
|
|
||||||
$.event 'rmMenuEntry', @entry
|
Header.menu.rmEntry @entry
|
||||||
|
|
||||||
delete @enabled
|
delete @enabled
|
||||||
delete @controls
|
delete @controls
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user