Fixes selection update for deleted entries.

This commit is contained in:
Lars Jung 2012-08-11 13:36:51 +02:00
parent 0b6b2b0f33
commit cc7d9ee912
3 changed files with 11 additions and 8 deletions

View File

@ -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
},

View File

@ -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 @@
}
}
}

View File

@ -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)