Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #6947 from EverythingMe/hide-dock
Browse files Browse the repository at this point in the history
[Bug 813100] Keep dock hidden across Ev.me [r=crdlc]
  • Loading branch information
Cristian Rodriguez committed Dec 11, 2012
2 parents f8769d1 + e3decc4 commit 8731bc8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
19 changes: 0 additions & 19 deletions apps/homescreen/everything.me/js/Brain.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ Evme.Brain = new function Evme_Brain() {
Brain.Searchbar.setEmptyClass();

Evme.Shortcuts.show();

Brain.FFOS.showMenu();
};
};

Expand Down Expand Up @@ -170,8 +168,6 @@ Evme.Brain = new function Evme_Brain() {
if (searchbarValue === "") {
Evme.Helper.setTitle();
Evme.Helper.showTitle();

Brain.FFOS.showMenu();
} else if (didClickApp) {
Evme.Searchbar.setValue(searchbarValue);
Evme.Helper.setTitle(searchbarValue);
Expand Down Expand Up @@ -238,9 +234,6 @@ Evme.Brain = new function Evme_Brain() {
// clear button was clicked
this.clearButtonClick = function clearButtonClick(data) {
self.cancelBlur();
if (!Evme.Utils.isKeyboardVisible) {
Brain.FFOS.showMenu();
}
};

// searchbar value changed
Expand Down Expand Up @@ -822,7 +815,6 @@ Evme.Brain = new function Evme_Brain() {
// shortcut was clicked
this.show = function show(data) {
elContainer.classList.add("smart-folder-visible");
Brain.FFOS.hideMenu();

currentFolder = data.folder;

Expand All @@ -840,8 +832,6 @@ Evme.Brain = new function Evme_Brain() {
// close button was clicked
this.close = function close() {
currentFolder = null;

window.setTimeout(Brain.FFOS.showMenu, 200);
};

// get current folder
Expand Down Expand Up @@ -985,8 +975,6 @@ Evme.Brain = new function Evme_Brain() {

// show
this.show = function show() {
Brain.FFOS.showMenu();

new Evme.Tip(TIPS.APP_EXPLAIN, function onShow(tip) {
elContainer.addEventListener("touchstart", tip.hide);
}).show();
Expand Down Expand Up @@ -1048,7 +1036,6 @@ Evme.Brain = new function Evme_Brain() {

Evme.Shortcuts.isEditing = false;
elContainer.classList.remove("shortcuts-customizing");
Brain.FFOS.showMenu();
};

// returns edit status
Expand Down Expand Up @@ -1082,7 +1069,6 @@ Evme.Brain = new function Evme_Brain() {
this.hold = function hold() {
Evme.Shortcuts.isEditing = true;
elContainer.classList.add("shortcuts-customizing");
Brain.FFOS.hideMenu();
};

// item clicked
Expand Down Expand Up @@ -1115,13 +1101,11 @@ Evme.Brain = new function Evme_Brain() {
isOpen = false;

this.show = function show() {
Brain.FFOS.hideMenu();
isOpen = true;
};

this.hide = function hide() {
Evme.ShortcutsCustomize.Loading.hide();
Brain.FFOS.showMenu();
isOpen = false;
};

Expand All @@ -1145,7 +1129,6 @@ Evme.Brain = new function Evme_Brain() {
"icons": data.icons
}, function onSuccess(){
Brain.Shortcuts.loadFromAPI();
Brain.FFOS.showMenu();
});
};

Expand All @@ -1155,7 +1138,6 @@ Evme.Brain = new function Evme_Brain() {

isRequesting = true;

Brain.FFOS.hideMenu();
Evme.ShortcutsCustomize.Loading.show();

// load user/default shortcuts from API
Expand Down Expand Up @@ -1209,7 +1191,6 @@ Evme.Brain = new function Evme_Brain() {
requestSuggest && requestSuggest.abort();
window.setTimeout(Evme.ShortcutsCustomize.Loading.hide, 50);
isRequesting = false;
Brain.FFOS.showMenu();
};

// inject + button
Expand Down
7 changes: 1 addition & 6 deletions apps/homescreen/everything.me/js/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,14 @@ window.Evme = new function Evme_Core() {

this.onShow = function onShow() {
Evme.Shortcuts.refreshScroll();
if (Evme.Searchbar.getValue() || Evme.Brain.SmartFolder.get()) {
Evme.Brain.FFOS.hideMenu();
} else {
Evme.Brain.FFOS.showMenu();
}
};
this.onHide = function onHide() {
Evme.Brain.Shortcuts.doneEdit();
Evme.Brain.SmartFolder.closeCurrent();
};

this.onHideStart = function onHideStart(source) {
if (source == "homeButtonClick") {
if (source === "homeButtonClick") {
if (
Evme.Brain.Shortcuts.hideIfEditing() ||
Evme.Brain.ShortcutsCustomize.isOpen() ||
Expand Down
2 changes: 2 additions & 0 deletions apps/homescreen/everything.me/js/everything.me.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ var EverythingME = {
classList.remove('frozen');

EverythingME.displayed = true;
footerStyle.MozTransform = "translateY(75px)";

page.addEventListener('gridpageshowend', function onpageshowafterload() {
if (EverythingME.displayed) return;

EverythingME.displayed = true;
footerStyle.MozTransform = "translateY(75px)";
EvmeFacade.onShow();
});

Expand Down

0 comments on commit 8731bc8

Please sign in to comment.