attack fastclick

This commit is contained in:
Matias Alejo Garcia 2015-04-23 18:05:31 -03:00
commit 1f403468e6
3 changed files with 8 additions and 9 deletions

View file

@ -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;

View file

@ -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() {

View file

@ -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;