From f329284210e4395029096e499a77c4bedacb0ca4 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Thu, 27 Nov 2014 11:42:40 -0300 Subject: [PATCH] Fix layout on Safari when click on sidebar and then on send --- js/controllers/join.js | 4 ++-- views/includes/scanner.html | 15 +++++++++++++++ views/join.html | 24 ++++++------------------ views/send.html | 32 ++++++++++---------------------- 4 files changed, 33 insertions(+), 42 deletions(-) create mode 100644 views/includes/scanner.html diff --git a/js/controllers/join.js b/js/controllers/join.js index 799b28447..89d33da99 100644 --- a/js/controllers/join.js +++ b/js/controllers/join.js @@ -1,10 +1,10 @@ 'use strict'; angular.module('copayApp.controllers').controller('JoinController', - function($scope, $rootScope, $timeout, controllerUtils, notification) { + function($scope, $rootScope, $timeout, isMobile, controllerUtils, notification) { $rootScope.fromSetup = false; $scope.loading = false; - $scope.isMobile = !!window.cordova; + $scope.isMobile = isMobile.any(); $rootScope.title = 'Join shared wallet'; // QR code Scanner diff --git a/views/includes/scanner.html b/views/includes/scanner.html new file mode 100644 index 000000000..0a6e372af --- /dev/null +++ b/views/includes/scanner.html @@ -0,0 +1,15 @@ +
+ +
+
+ + + Get QR code + + +
+
+
+ +
+
diff --git a/views/join.html b/views/join.html index 734f81d5e..b7bd203e6 100644 --- a/views/join.html +++ b/views/join.html @@ -36,7 +36,7 @@
- +
 
@@ -45,23 +45,11 @@
-
-
- -
-
- - - Get QR code - - -
-
-
- -
-
-
+
+
diff --git a/views/send.html b/views/send.html index 61ea1a389..0d1373a38 100644 --- a/views/send.html +++ b/views/send.html @@ -16,10 +16,11 @@

{{$root.title}}

+
+
-

@@ -31,8 +32,6 @@ {{success|translate}}

- -
-
-
-
- -
-
- - - Get QR code - - -
-
-
- -
-
+
+
@@ -188,10 +175,11 @@
- - + + +