зеркало из https://github.com/mozilla/pjs.git
Bug 451352 - Further fixes to pwmgr search filtering UI; r=dolske
This commit is contained in:
Родитель
7ba06ce682
Коммит
a723b0678b
|
@ -253,7 +253,7 @@ function SignonClearFilter() {
|
|||
// Restore selection
|
||||
if (singleSelection) {
|
||||
signonsTreeView.selection.clearSelection();
|
||||
for (i = 0; i < signonsTreeView._lastSelectedRanges.length; ++i) {
|
||||
for (let i = 0; i < signonsTreeView._lastSelectedRanges.length; ++i) {
|
||||
var range = signonsTreeView._lastSelectedRanges[i];
|
||||
signonsTreeView.selection.rangedSelect(range.min, range.max, true);
|
||||
}
|
||||
|
@ -321,7 +321,9 @@ function _filterPasswords()
|
|||
signonsTreeView._filterSet = newFilterSet;
|
||||
|
||||
// Clear the display
|
||||
signonsTree.treeBoxObject.rowCountChanged(0, -signonsTreeView.rowCount);
|
||||
let oldRowCount = signonsTreeView.rowCount;
|
||||
signonsTreeView.rowCount = 0;
|
||||
signonsTree.treeBoxObject.rowCountChanged(0, -oldRowCount);
|
||||
// Set up the filtered display
|
||||
signonsTreeView.rowCount = signonsTreeView._filterSet.length;
|
||||
signonsTree.treeBoxObject.rowCountChanged(0, signonsTreeView.rowCount);
|
||||
|
|
Загрузка…
Ссылка в новой задаче