From 111a1f9331175b546b6c07059e7ece79fd087138 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 9 Jul 2015 13:27:45 +0300 Subject: [PATCH] Firefox minor fixes --- app/js/controllers.js | 5 ++++- app/js/directives.js | 6 ++++-- app/js/lib/ng_utils.js | 4 ++++ app/less/desktop.less | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/app/js/controllers.js b/app/js/controllers.js index 99543af6..c726dc7c 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -1140,6 +1140,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) } function updateStartBot () { + var wasStartBot = $scope.historyState.startBot; if (!peerID || peerID < 0 || !AppUsersManager.isBot(peerID) || @@ -1163,7 +1164,9 @@ angular.module('myApp.controllers', ['myApp.i18n']) else { $scope.historyState.startBot = false; } - $scope.$broadcast('ui_panel_update'); + if (wasStartBot != $scope.historyState.startBot) { + $scope.$broadcast('ui_panel_update'); + } } function messageFocusHistory () { diff --git a/app/js/directives.js b/app/js/directives.js index 42f47f21..f610098e 100755 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -1877,8 +1877,10 @@ angular.module('myApp.directives', ['myApp.filters']) } if ($scope.document.url) { - $scope.isActive = !$scope.isActive; - $scope.$emit('ui_height'); + onContentLoaded(function () { + $scope.isActive = !$scope.isActive; + $scope.$emit('ui_height'); + }) return; } diff --git a/app/js/lib/ng_utils.js b/app/js/lib/ng_utils.js index 7be68f91..087e3d2e 100644 --- a/app/js/lib/ng_utils.js +++ b/app/js/lib/ng_utils.js @@ -423,6 +423,10 @@ angular.module('izhukov.utils', []) return saveFileBase64(db, fileName, blob); } + if (!(blob instanceof Blob)) { + blob = blobConstruct([blob]); + } + try { var objectStore = db.transaction([dbStoreName], IDBTransaction.READ_WRITE || 'readwrite').objectStore(dbStoreName), request = objectStore.put(blob, fileName); diff --git a/app/less/desktop.less b/app/less/desktop.less index 573042b9..a7cc9d60 100644 --- a/app/less/desktop.less +++ b/app/less/desktop.less @@ -914,7 +914,7 @@ a.footer_link.active:active { width: 26px; height: 26px; margin: 9px 0 0 -59px; - display: inline-block; + display: block; .image-2x('../img/icons/IconsetW.png', 42px, 1171px); background-position: -9px -481px;