mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Small fixes
Utf8 clear supports icon unicode
This commit is contained in:
parent
e6725198c4
commit
19f089d0bf
15 changed files with 141 additions and 62 deletions
|
|
@ -58,7 +58,7 @@
|
|||
this.selectedItem(null);
|
||||
}
|
||||
}
|
||||
else if (this.bAutoSelect && this.focusedItem())
|
||||
else if (this.autoSelect() && this.focusedItem())
|
||||
{
|
||||
this.selectedItem(this.focusedItem());
|
||||
}
|
||||
|
|
@ -124,10 +124,10 @@
|
|||
this.sItemFocusedSelector = sItemFocusedSelector;
|
||||
|
||||
this.sLastUid = '';
|
||||
this.bAutoSelect = true;
|
||||
this.oCallbacks = {};
|
||||
|
||||
this.emptyFunction = function () {};
|
||||
this.emptyTrueFunction = function () { return true; };
|
||||
|
||||
this.focusedItem.subscribe(function (oItem) {
|
||||
if (oItem)
|
||||
|
|
@ -221,7 +221,7 @@
|
|||
|
||||
this.selectedItemUseCallback = true;
|
||||
|
||||
if (!bChecked && !bSelected && this.bAutoSelect)
|
||||
if (!bChecked && !bSelected && this.autoSelect())
|
||||
{
|
||||
if (self.focusedItem())
|
||||
{
|
||||
|
|
@ -392,9 +392,12 @@
|
|||
}
|
||||
};
|
||||
|
||||
Selector.prototype.autoSelect = function (bValue)
|
||||
/**
|
||||
* @returns {boolean}
|
||||
*/
|
||||
Selector.prototype.autoSelect = function ()
|
||||
{
|
||||
this.bAutoSelect = !!bValue;
|
||||
return !!(this.oCallbacks['onAutoSelect'] || this.emptyTrueFunction)();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -540,7 +543,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
if ((this.bAutoSelect || !!bForceSelect) &&
|
||||
if ((this.autoSelect() || !!bForceSelect) &&
|
||||
!this.isListChecked() && Enums.EventKeyCode.Space !== iEventKeyCode)
|
||||
{
|
||||
this.selectedItem(oResult);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue