зеркало из https://github.com/mozilla/phonebook.git
Keep tree from un-collapsing itself all the time. Bug 616617.
git-svn-id: http://svn.mozilla.org/projects/phonebook/trunk@100299 4eb1ac78-321c-0410-a911-ec516a8615a5
This commit is contained in:
Родитель
e91e402b76
Коммит
f7e940a2dd
|
@ -45,7 +45,7 @@ BehaviorManager.register("scrollSnap", function() {
|
||||||
BehaviorManager.register("treeNodeToggling", function(e) {
|
BehaviorManager.register("treeNodeToggling", function(e) {
|
||||||
!e.element().match("a") && $(this).toggleTree();
|
!e.element().match("a") && $(this).toggleTree();
|
||||||
Tree.doNotFilter = true;
|
Tree.doNotFilter = true;
|
||||||
Tree.select(this);
|
e.element().match("a") && Tree.select(this);
|
||||||
e.stop();
|
e.stop();
|
||||||
}.toBehavior(new Selector("div li.hr-node"), "click"));
|
}.toBehavior(new Selector("div li.hr-node"), "click"));
|
||||||
|
|
||||||
|
@ -196,7 +196,6 @@ Object.extend(SearchManager, {
|
||||||
var query = e.memo.hash.replace("search/", '');
|
var query = e.memo.hash.replace("search/", '');
|
||||||
console.log(query);
|
console.log(query);
|
||||||
$("text").value = query;
|
$("text").value = query;
|
||||||
Tree.stopFiltering();
|
|
||||||
if (query.include('@')) {
|
if (query.include('@')) {
|
||||||
Tree.showPerson.bind(this)(query);
|
Tree.showPerson.bind(this)(query);
|
||||||
Tree.select($(query.replace('@', "-at-")));
|
Tree.select($(query.replace('@', "-at-")));
|
||||||
|
|
Загрузка…
Ссылка в новой задаче