attack fastclick
This commit is contained in:
parent
3c00a4a06c
commit
1f403468e6
3 changed files with 8 additions and 9 deletions
|
|
@ -121,8 +121,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
if (document.getElementById(tab)) {
|
||||
document.getElementById(tab).className = 'tab-in tab-view ' + tab;
|
||||
var newe = document.getElementById('menu-' + tab);
|
||||
newe.className = 'active';
|
||||
newe.style.borderTopColor = self.backgroundColor;
|
||||
if (newe) {
|
||||
newe.className = 'active';
|
||||
newe.style.borderTopColor = self.backgroundColor;
|
||||
}
|
||||
}
|
||||
|
||||
self.tab = tab;
|
||||
|
|
|
|||
|
|
@ -9,13 +9,6 @@ angular.element(document).ready(function() {
|
|||
/* Cordova specific Init */
|
||||
if (window.cordova !== undefined) {
|
||||
|
||||
// Fastclick event
|
||||
if ('addEventListener' in document) {
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
FastClick.attach(document.body);
|
||||
}, false);
|
||||
}
|
||||
|
||||
document.addEventListener('deviceready', function() {
|
||||
|
||||
document.addEventListener('pause', function() {
|
||||
|
|
|
|||
|
|
@ -376,6 +376,10 @@ angular
|
|||
});
|
||||
})
|
||||
.run(function($rootScope, $state, $log, gettextCatalog, uriHandler, isCordova, amMoment, profileService) {
|
||||
|
||||
console.log('Attaching FastClick');
|
||||
FastClick.attach(document.body);
|
||||
|
||||
|
||||
// Auto-detect browser language
|
||||
var userLang, androidLang;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue