mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-30 19:00:09 +00:00
now opening in side panels opens the panel...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8a2e68fd82
commit
31012cfe3a
@ -130,6 +130,7 @@
|
|||||||
.side-panel.right:not(:empty):after {
|
.side-panel.right:not(:empty):after {
|
||||||
right: 0px;
|
right: 0px;
|
||||||
}
|
}
|
||||||
|
.side-panel[open],
|
||||||
.side-panel:not(:empty)[autohide=off],
|
.side-panel:not(:empty)[autohide=off],
|
||||||
.side-panel[autohide=on]:not(:empty):hover {
|
.side-panel[autohide=on]:not(:empty):hover {
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
@ -146,6 +147,7 @@
|
|||||||
.side-panel[autohide=on] .sub-panel {
|
.side-panel[autohide=on] .sub-panel {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
.side-panel[open] .sub-panel,
|
||||||
.side-panel[autohide=on]:hover .sub-panel {
|
.side-panel[autohide=on]:hover .sub-panel {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -289,6 +289,12 @@ function makeSidePanel(side, parent, autohide){
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
})
|
})
|
||||||
|
// hide temporarily opened side-panels...
|
||||||
|
.mouseout(function(){
|
||||||
|
// XXX jQuery bug: this does not work...
|
||||||
|
//panel.prop('open', false)
|
||||||
|
panel.attr('open', null)
|
||||||
|
})
|
||||||
.sortable({
|
.sortable({
|
||||||
forcePlaceholderSize: true,
|
forcePlaceholderSize: true,
|
||||||
opacity: 0.7,
|
opacity: 0.7,
|
||||||
@ -436,11 +442,17 @@ function openPanel(panel){
|
|||||||
// show/open the panel and all it's parents...
|
// show/open the panel and all it's parents...
|
||||||
} else {
|
} else {
|
||||||
open = isPanelVisible(panel)
|
open = isPanelVisible(panel)
|
||||||
|
// show panels...
|
||||||
panel
|
panel
|
||||||
.prop('open', true)
|
.prop('open', true)
|
||||||
.parents('.panel')
|
.parents('.panel')
|
||||||
.prop('open', true)
|
.prop('open', true)
|
||||||
// XXX show side panels too...
|
// show side panels...
|
||||||
|
panel
|
||||||
|
.parents('.side-panel').first()
|
||||||
|
// XXX jQuery bug: this does not work...
|
||||||
|
//.prop('open', true)
|
||||||
|
.attr('open', 'yes')
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the panel was not open trigger the event...
|
// if the panel was not open trigger the event...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user