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)) {
|
if (document.getElementById(tab)) {
|
||||||
document.getElementById(tab).className = 'tab-in tab-view ' + tab;
|
document.getElementById(tab).className = 'tab-in tab-view ' + tab;
|
||||||
var newe = document.getElementById('menu-' + tab);
|
var newe = document.getElementById('menu-' + tab);
|
||||||
newe.className = 'active';
|
if (newe) {
|
||||||
newe.style.borderTopColor = self.backgroundColor;
|
newe.className = 'active';
|
||||||
|
newe.style.borderTopColor = self.backgroundColor;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
self.tab = tab;
|
self.tab = tab;
|
||||||
|
|
|
||||||
|
|
@ -9,13 +9,6 @@ angular.element(document).ready(function() {
|
||||||
/* Cordova specific Init */
|
/* Cordova specific Init */
|
||||||
if (window.cordova !== undefined) {
|
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('deviceready', function() {
|
||||||
|
|
||||||
document.addEventListener('pause', function() {
|
document.addEventListener('pause', function() {
|
||||||
|
|
|
||||||
|
|
@ -376,6 +376,10 @@ angular
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.run(function($rootScope, $state, $log, gettextCatalog, uriHandler, isCordova, amMoment, profileService) {
|
.run(function($rootScope, $state, $log, gettextCatalog, uriHandler, isCordova, amMoment, profileService) {
|
||||||
|
|
||||||
|
console.log('Attaching FastClick');
|
||||||
|
FastClick.attach(document.body);
|
||||||
|
|
||||||
|
|
||||||
// Auto-detect browser language
|
// Auto-detect browser language
|
||||||
var userLang, androidLang;
|
var userLang, androidLang;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue