1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 19:01:42 +00:00

Rewrite repo with HLItemView

This commit is contained in:
Daniel Pan
2016-03-22 11:47:52 +08:00
parent 6254417be8
commit 2e5ced905f
6 changed files with 38 additions and 66 deletions

View File

@@ -20,7 +20,9 @@ define([
},
highlight: function() {
if (app.ui.currentDropdown) {
// if there are dropdown items or freezeItemHightlight is set, don't highlight
console.log("highlight");
if (app.ui.currentDropdown || app.ui.freezeItemHightlight) {
return;
}
app.ui.currentHighlightedItem = this;
@@ -28,7 +30,7 @@ define([
},
rmHighlight: function() {
if (app.ui.currentDropdown) {
if (app.ui.currentDropdown || app.ui.freezeItemHightlight) {
return;
}
app.ui.currentHighlightedItem = null;