rm fastclick

This commit is contained in:
Matias Alejo Garcia 2015-04-23 14:12:32 -03:00
parent faea6dfb6d
commit ea7484512f
5 changed files with 15 additions and 5 deletions

View File

@ -78,7 +78,6 @@ module.exports = function(grunt) {
},
angular: {
src: [
'bower_components/fastclick/lib/fastclick.js',
'bower_components/qrcode-generator/js/qrcode.js',
'bower_components/qrcode-decoder-js/lib/qrcode-decoder.js',
'bower_components/moment/min/moment-with-locales.js',

View File

@ -21,7 +21,6 @@
"angular-bitcore-wallet-client": "^0.0.18",
"angular-ui-router": "~0.2.13",
"qrcode-decoder-js": "*",
"fastclick": "*",
"angular-ui-switch": "~0.1.0"
},
"resolutions": {

View File

@ -1,8 +1,7 @@
<div
class="bottom-bar row collapse">
<div class="medium-3 small-3 columns text-center bottombar-item" ng-repeat="item in index.menu">
<a ng-click="index.setTab(item.link)" ng-class="{'active': index.tab == item.link}"
ng-style="{'border-top-color':index.tab==item.link ? index.backgroundColor : ''}">
<a id="menu-{{item.link}}" ng-click="index.setTab(item.link)" class="{{item.active? 'active': ''}}" style="border-top-color:{{item.active? index.backgroundColor: ''}}" >
<i class="size-36 {{item.icon}} db"></i>
<div class="size-10 tu">
{{item.title|translate}}

View File

@ -338,6 +338,8 @@ history
-->
<div id="history" class="history tab-view">
<div>
<div class="row m20t" ng-show="!index.txHistory[0]">
<div class="large-12 columns">
<div class="oh text-center">
@ -401,6 +403,7 @@ history
</div>
</div>
</div>
</div>

View File

@ -13,7 +13,8 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.menu = [{
'title': 'Home',
'icon': 'icon-home',
'link': 'walletHome'
'link': 'walletHome',
'active': true,
}, {
'title': 'Receive',
'icon': 'icon-receive',
@ -105,6 +106,15 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.setTab = function(tab) {
document.getElementById(self.tab).className='tab-out tab-view ' + self.tab;
document.getElementById(tab).className='tab-in tab-view ' + tab;
var old =document.getElementById('menu-'+self.tab);
old.className='';
old.style.borderTopColor = '';
var newe = document.getElementById('menu-'+tab);
newe.className='active';
newe.style.borderTopColor = self.backgroundColor;
self.tab = tab;
};