Browse Source

Fixed FxOS 1.1 media attachment

Closes #419
master
Igor Zhukov 10 years ago
parent
commit
be06ca6520
  1. 12
      app/css/app_mobile.css
  2. 2
      app/js/directives.js

12
app/css/app_mobile.css

@ -1096,7 +1096,7 @@ a.mobile_modal_action .tg_checkbox_label {
display: none; display: none;
} }
.im_media_attach { .im_attach {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;
@ -1106,7 +1106,7 @@ a.mobile_modal_action .tg_checkbox_label {
padding: 3px 13px 4px 16px; padding: 3px 13px 4px 16px;
} }
.icon-camera { .icon-paperclip {
display: inline-block; display: inline-block;
width: 19px; width: 19px;
height: 23px; height: 23px;
@ -1115,11 +1115,11 @@ a.mobile_modal_action .tg_checkbox_label {
background-size: 42px 891px; background-size: 42px 891px;
opacity: 0.8; opacity: 0.8;
} }
.is_1x .icon-camera { .is_1x .icon-paperclip {
background-image: url(../img/icons/IconsetW_1x.png); background-image: url(../img/icons/IconsetW_1x.png);
} }
.im_media_attach:hover .icon-camera, .im_attach:hover .icon-paperclip,
.im_media_attach:active .icon-camera { .im_attach:active .icon-paperclip {
background-position: -12px -100px; background-position: -12px -100px;
opacity: 1; opacity: 1;
} }
@ -1129,7 +1129,7 @@ a.mobile_modal_action .tg_checkbox_label {
.im_send_form_empty .im_submit { .im_send_form_empty .im_submit {
display: none; display: none;
} }
.im_send_form_empty .im_media_attach { .im_send_form_empty .im_attach {
display: block; display: block;
} }

2
app/js/directives.js

@ -743,7 +743,7 @@ angular.module('myApp.directives', ['myApp.filters'])
var self = this; var self = this;
$scope.$apply(function () { $scope.$apply(function () {
$scope.draftMessage.files = Array.prototype.slice.call(self.files); $scope.draftMessage.files = Array.prototype.slice.call(self.files);
$scope.draftMessage.isMedia = $(self).hasClass('im_media_attach_input'); $scope.draftMessage.isMedia = $(self).hasClass('im_media_attach_input') || Config.Navigator.mobile;
setTimeout(function () { setTimeout(function () {
try { try {
self.value = ''; self.value = '';

Loading…
Cancel
Save