replace href to ng-click in sidebars. add hack to close sidebars
This commit is contained in:
parent
a115a6d17a
commit
eeab451bbc
9 changed files with 38 additions and 32 deletions
18
js/init.js
18
js/init.js
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue