mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-19 12:00:01 +01:00
Fixes selection update for deleted entries.
This commit is contained in:
parent
0b6b2b0f33
commit
cc7d9ee912
@ -40,7 +40,7 @@ var H5AI_CONFIG = {
|
||||
Set parent folder labels to real folder names.
|
||||
*/
|
||||
"view": {
|
||||
"modes": ["details", "list", "icons"],
|
||||
"modes": ["details", "icons"],
|
||||
"setParentFolderLabels": true
|
||||
},
|
||||
|
||||
|
@ -6,12 +6,10 @@
|
||||
right: 0;
|
||||
top: 0;
|
||||
background-color: rgb(241,241,241);
|
||||
// border: 1px solid rgb(210,210,210);
|
||||
border: 2px solid rgb(210,210,210);
|
||||
border: 1px solid rgb(210,210,210);
|
||||
color: #999;
|
||||
z-index: 10;
|
||||
font-size: 0.9em;
|
||||
.border-radius(4px);
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
@ -20,12 +18,10 @@
|
||||
text-align: left;
|
||||
|
||||
li {
|
||||
// padding: 8px 12px 10px 12px;
|
||||
padding: 4px 4px 4px 4px;
|
||||
padding: 8px 12px 10px 12px;
|
||||
white-space: nowrap;
|
||||
border-top: 1px solid rgb(231,231,231);
|
||||
.transition(all 0.2s ease-in-out);
|
||||
.border-radius(4px);
|
||||
|
||||
&:hover {
|
||||
color: #e80;
|
||||
@ -34,4 +30,3 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -125,6 +125,14 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/event'], functio
|
||||
|
||||
$selectionRect.hide().appendTo('body');
|
||||
|
||||
event.sub('entry.removed', function (entry) {
|
||||
|
||||
if (entry.$extended && entry.$extended.hasClass('selected')) {
|
||||
entry.$extended.removeClass('selected');
|
||||
publish();
|
||||
}
|
||||
});
|
||||
|
||||
$document
|
||||
.on('mousedown', '.noSelection', noSelection)
|
||||
.on('mousedown', '.noSelectionUnlessCtrl,input,a', noSelectionUnlessCtrl)
|
||||
|
Loading…
x
Reference in New Issue
Block a user