mirror of https://github.com/BTCPrivate/copay.git
rm fastclick
This commit is contained in:
parent
faea6dfb6d
commit
ea7484512f
|
@ -78,7 +78,6 @@ module.exports = function(grunt) {
|
||||||
},
|
},
|
||||||
angular: {
|
angular: {
|
||||||
src: [
|
src: [
|
||||||
'bower_components/fastclick/lib/fastclick.js',
|
|
||||||
'bower_components/qrcode-generator/js/qrcode.js',
|
'bower_components/qrcode-generator/js/qrcode.js',
|
||||||
'bower_components/qrcode-decoder-js/lib/qrcode-decoder.js',
|
'bower_components/qrcode-decoder-js/lib/qrcode-decoder.js',
|
||||||
'bower_components/moment/min/moment-with-locales.js',
|
'bower_components/moment/min/moment-with-locales.js',
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
"angular-bitcore-wallet-client": "^0.0.18",
|
"angular-bitcore-wallet-client": "^0.0.18",
|
||||||
"angular-ui-router": "~0.2.13",
|
"angular-ui-router": "~0.2.13",
|
||||||
"qrcode-decoder-js": "*",
|
"qrcode-decoder-js": "*",
|
||||||
"fastclick": "*",
|
|
||||||
"angular-ui-switch": "~0.1.0"
|
"angular-ui-switch": "~0.1.0"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
<div
|
<div
|
||||||
class="bottom-bar row collapse">
|
class="bottom-bar row collapse">
|
||||||
<div class="medium-3 small-3 columns text-center bottombar-item" ng-repeat="item in index.menu">
|
<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}"
|
<a id="menu-{{item.link}}" ng-click="index.setTab(item.link)" class="{{item.active? 'active': ''}}" style="border-top-color:{{item.active? index.backgroundColor: ''}}" >
|
||||||
ng-style="{'border-top-color':index.tab==item.link ? index.backgroundColor : ''}">
|
|
||||||
<i class="size-36 {{item.icon}} db"></i>
|
<i class="size-36 {{item.icon}} db"></i>
|
||||||
<div class="size-10 tu">
|
<div class="size-10 tu">
|
||||||
{{item.title|translate}}
|
{{item.title|translate}}
|
||||||
|
|
|
@ -338,6 +338,8 @@ history
|
||||||
|
|
||||||
-->
|
-->
|
||||||
<div id="history" class="history tab-view">
|
<div id="history" class="history tab-view">
|
||||||
|
|
||||||
|
<div>
|
||||||
<div class="row m20t" ng-show="!index.txHistory[0]">
|
<div class="row m20t" ng-show="!index.txHistory[0]">
|
||||||
<div class="large-12 columns">
|
<div class="large-12 columns">
|
||||||
<div class="oh text-center">
|
<div class="oh text-center">
|
||||||
|
@ -401,6 +403,7 @@ history
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,8 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
self.menu = [{
|
self.menu = [{
|
||||||
'title': 'Home',
|
'title': 'Home',
|
||||||
'icon': 'icon-home',
|
'icon': 'icon-home',
|
||||||
'link': 'walletHome'
|
'link': 'walletHome',
|
||||||
|
'active': true,
|
||||||
}, {
|
}, {
|
||||||
'title': 'Receive',
|
'title': 'Receive',
|
||||||
'icon': 'icon-receive',
|
'icon': 'icon-receive',
|
||||||
|
@ -105,6 +106,15 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
self.setTab = function(tab) {
|
self.setTab = function(tab) {
|
||||||
document.getElementById(self.tab).className='tab-out tab-view ' + self.tab;
|
document.getElementById(self.tab).className='tab-out tab-view ' + self.tab;
|
||||||
document.getElementById(tab).className='tab-in tab-view ' + 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;
|
self.tab = tab;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue