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