EAI classes. #932
This commit is contained in:
parent
b6f7514605
commit
d1f0566dab
File diff suppressed because one or more lines are too long
@ -160,6 +160,9 @@ a[href="javascript:;"] {
|
||||
.brackets-wrap::after {
|
||||
content: "]\\00a0";
|
||||
}
|
||||
.expand-all-shortcut {
|
||||
opacity: .35;
|
||||
}
|
||||
|
||||
/* Notifications */
|
||||
#notifications {
|
||||
|
||||
@ -3070,11 +3070,10 @@ ImageExpand =
|
||||
return if g.VIEW is 'catalog' or !Conf['Image Expansion']
|
||||
|
||||
@EAI = $.el 'a',
|
||||
className: 'expanded-all-shortcut'
|
||||
className: 'expand-all-shortcut'
|
||||
textContent: 'EAI'
|
||||
title: 'Expand All Images'
|
||||
href: 'javascript:;'
|
||||
@EAI.style.opacity = '.35'
|
||||
$.on @EAI, 'click', ImageExpand.cb.toggleAll
|
||||
Header.addShortcut @EAI
|
||||
|
||||
@ -3093,11 +3092,11 @@ ImageExpand =
|
||||
ImageExpand.toggle Get.postFromNode @
|
||||
toggleAll: ->
|
||||
$.event 'CloseMenu'
|
||||
if ImageExpand.on = ImageExpand.EAI.style.opacity isnt '1'
|
||||
ImageExpand.EAI.style.opacity = 1
|
||||
if ImageExpand.on = $.hasClass ImageExpand.EAI, 'expand-all-shortcut'
|
||||
ImageExpand.EAI.className = 'contract-all-shortcut'
|
||||
func = ImageExpand.expand
|
||||
else
|
||||
ImageExpand.EAI.style.opacity = .35
|
||||
ImageExpand.EAI.className = 'expand-all-shortcut'
|
||||
func = ImageExpand.contract
|
||||
for ID, post of g.posts
|
||||
for post in [post].concat post.clones
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user