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 {
|
.brackets-wrap::after {
|
||||||
content: "]\\00a0";
|
content: "]\\00a0";
|
||||||
}
|
}
|
||||||
|
.expand-all-shortcut {
|
||||||
|
opacity: .35;
|
||||||
|
}
|
||||||
|
|
||||||
/* Notifications */
|
/* Notifications */
|
||||||
#notifications {
|
#notifications {
|
||||||
|
|||||||
@ -3070,11 +3070,10 @@ ImageExpand =
|
|||||||
return if g.VIEW is 'catalog' or !Conf['Image Expansion']
|
return if g.VIEW is 'catalog' or !Conf['Image Expansion']
|
||||||
|
|
||||||
@EAI = $.el 'a',
|
@EAI = $.el 'a',
|
||||||
className: 'expanded-all-shortcut'
|
className: 'expand-all-shortcut'
|
||||||
textContent: 'EAI'
|
textContent: 'EAI'
|
||||||
title: 'Expand All Images'
|
title: 'Expand All Images'
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
@EAI.style.opacity = '.35'
|
|
||||||
$.on @EAI, 'click', ImageExpand.cb.toggleAll
|
$.on @EAI, 'click', ImageExpand.cb.toggleAll
|
||||||
Header.addShortcut @EAI
|
Header.addShortcut @EAI
|
||||||
|
|
||||||
@ -3093,11 +3092,11 @@ ImageExpand =
|
|||||||
ImageExpand.toggle Get.postFromNode @
|
ImageExpand.toggle Get.postFromNode @
|
||||||
toggleAll: ->
|
toggleAll: ->
|
||||||
$.event 'CloseMenu'
|
$.event 'CloseMenu'
|
||||||
if ImageExpand.on = ImageExpand.EAI.style.opacity isnt '1'
|
if ImageExpand.on = $.hasClass ImageExpand.EAI, 'expand-all-shortcut'
|
||||||
ImageExpand.EAI.style.opacity = 1
|
ImageExpand.EAI.className = 'contract-all-shortcut'
|
||||||
func = ImageExpand.expand
|
func = ImageExpand.expand
|
||||||
else
|
else
|
||||||
ImageExpand.EAI.style.opacity = .35
|
ImageExpand.EAI.className = 'expand-all-shortcut'
|
||||||
func = ImageExpand.contract
|
func = ImageExpand.contract
|
||||||
for ID, post of g.posts
|
for ID, post of g.posts
|
||||||
for post in [post].concat post.clones
|
for post in [post].concat post.clones
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user