Browse Source

Firefox minor fixes

master
Igor Zhukov 9 years ago
parent
commit
111a1f9331
  1. 5
      app/js/controllers.js
  2. 6
      app/js/directives.js
  3. 4
      app/js/lib/ng_utils.js
  4. 2
      app/less/desktop.less

5
app/js/controllers.js

@ -1140,6 +1140,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) @@ -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']) @@ -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 () {

6
app/js/directives.js

@ -1877,8 +1877,10 @@ angular.module('myApp.directives', ['myApp.filters']) @@ -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;
}

4
app/js/lib/ng_utils.js

@ -423,6 +423,10 @@ angular.module('izhukov.utils', []) @@ -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);

2
app/less/desktop.less

@ -914,7 +914,7 @@ a.footer_link.active:active { @@ -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;

Loading…
Cancel
Save