replace href to ng-click in sidebars. add hack to close sidebars

This commit is contained in:
Matias Alejo Garcia 2014-12-07 12:40:59 -03:00
commit eeab451bbc
9 changed files with 38 additions and 32 deletions

View file

@ -1,13 +1,21 @@
'use strict';
angular.element(document).ready(function() {
var startAngular = function () {
var startAngular = function() {
angular.bootstrap(document, ['copayApp']);
};
/* Cordova specific Init */
if (window.cordova !== undefined) {
document.addEventListener('deviceready', function() {
setTimeout(function(){ navigator.splashscreen.hide(); }, 2000);
document.addEventListener('pause', function() {
window.location = '#!';
});
setTimeout(function() {
navigator.splashscreen.hide();
}, 2000);
function handleBitcoinURI(url) {
if (!url) return;
@ -20,10 +28,6 @@ angular.element(document).ready(function() {
startAngular();
}, false);
document.addEventListener('pause', function() {
window.location = '#!';
});
} else {
startAngular();
}