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

Commit

Permalink
Revert "[Bug 912386] fix long-tap on app won't prevent normal click […
Browse files Browse the repository at this point in the history
…r=crdlc]"

This reverts commit ccf3a20.
  • Loading branch information
Ran Ben Aharon committed Sep 5, 2013
1 parent 3c31db2 commit c9e9a31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
13 changes: 2 additions & 11 deletions apps/homescreen/everything.me/js/Brain.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ Evme.Brain = new function Evme_Brain() {
CLASS_WHEN_HAS_QUERY = 'evme-has-query',
CLASS_WHEN_COLLECTION_VISIBLE = 'evme-collection-visible',
CLASS_WHEN_LOADING_SHORTCUTS_SUGGESTIONS = 'evme-suggest-collections-loading',
CLASS_WHEN_SAVING_TO_HOMESCREEN = 'save-to-homescreen',

L10N_SYSTEM_ALERT = 'alert',

Expand Down Expand Up @@ -675,28 +674,20 @@ Evme.Brain = new function Evme_Brain() {
}

function saveToHomescreen(data, showConfirm) {
var isAppInstalled = EvmeManager.isAppInstalled(data.app.getFavLink()),
classList = data.el.classList;
var isAppInstalled = EvmeManager.isAppInstalled(data.app.getFavLink());

if (isAppInstalled) {
classList.add(CLASS_WHEN_SAVING_TO_HOMESCREEN);
window.alert(Evme.Utils.l10n(L10N_SYSTEM_ALERT, 'app-install-exists', {
'name': data.data.name
}));
classList.remove(CLASS_WHEN_SAVING_TO_HOMESCREEN);
return;
}

if (showConfirm) {
var msg = Evme.Utils.l10n(L10N_SYSTEM_ALERT, 'app-install-confirm', {
'name': data.data.name
});

classList.add(CLASS_WHEN_SAVING_TO_HOMESCREEN);
var saved = window.confirm(msg);
classList.remove(CLASS_WHEN_SAVING_TO_HOMESCREEN);

if (!saved) {
if (!window.confirm(msg)) {
return;
}
}
Expand Down
6 changes: 1 addition & 5 deletions apps/homescreen/everything.me/modules/Results/Results.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,10 @@
position: relative; /* for span.remove positioning */
}

.evmeScope .evme-apps ul.marketapps li {
.evmeScope .evme-apps ul.marketapps li{
height: 9.3rem;
}

.evmeScope .evme-apps ul li.save-to-homescreen {
pointer-events: none;
}

.evmeScope .evme-apps:not(.has-installed) .has-installed-visible {
display: none;
}
Expand Down

0 comments on commit c9e9a31

Please sign in to comment.