From c07b22a4b427557323c16b1e27d0d22245e2c702 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Tue, 30 Sep 2014 19:27:21 +0400 Subject: [PATCH] Audio player fixes Reverted IM not loaded label Fixed mobile edit action buttons Disabled i18n for mobile --- app/css/app.css | 5 ++++- app/js/filters.js | 3 +++ app/js/init.js | 2 +- app/partials/desktop/audio_player.html | 2 +- app/partials/desktop/im.html | 10 ++++++++++ app/partials/mobile/im.html | 5 ++--- app/webogram.appcache | 2 +- package.json | 2 +- 8 files changed, 23 insertions(+), 8 deletions(-) diff --git a/app/css/app.css b/app/css/app.css index 893f2dc0..ab3d70d9 100644 --- a/app/css/app.css +++ b/app/css/app.css @@ -1457,13 +1457,16 @@ img.im_message_document_thumb { background-position: -15px -924px; } .audio_player_btn_icon_cancel { - background-position: -15px -948px; + background-position: -15px -924px; + /*background-position: -15px -948px;*/ } .audio_player_title_wrap { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 0 1px; + line-height: 18px; + height: 19px; } .audio_player_title { color: #222; diff --git a/app/js/filters.js b/app/js/filters.js index a60f2342..f8b30c50 100644 --- a/app/js/filters.js +++ b/app/js/filters.js @@ -105,6 +105,9 @@ angular.module('myApp.filters', ['myApp.i18n']) .filter('duration', [function() { return function (duration) { duration = parseInt(duration); + if (isNaN(duration)) { + duration = 0; + } var secs = duration % 60, mins = Math.floor((duration - secs) / 60.0); diff --git a/app/js/init.js b/app/js/init.js index 64902410..22e9a1b2 100644 --- a/app/js/init.js +++ b/app/js/init.js @@ -111,7 +111,7 @@ locale = (navigator.language || '').toLowerCase(); locale = Config.I18n.aliases[locale] || locale; } - if (Config.I18n.supported.indexOf(locale) != -1) { + if (!Config.Mobile && Config.I18n.supported.indexOf(locale) != -1) { Config.I18n.locale = locale; } bootReady.i18n_ng = Config.I18n.locale == defaultLocale; // Already included diff --git a/app/partials/desktop/audio_player.html b/app/partials/desktop/audio_player.html index 3a3a7d78..388fe54d 100644 --- a/app/partials/desktop/audio_player.html +++ b/app/partials/desktop/audio_player.html @@ -2,7 +2,7 @@ -
+
+ +
+
+

+

+ +
+
+
+
diff --git a/app/partials/mobile/im.html b/app/partials/mobile/im.html index b68abbd6..de5e4557 100644 --- a/app/partials/mobile/im.html +++ b/app/partials/mobile/im.html @@ -24,7 +24,7 @@

- +
@@ -99,8 +99,7 @@
- - +
diff --git a/app/webogram.appcache b/app/webogram.appcache index 5bcc0184..51afab54 100644 --- a/app/webogram.appcache +++ b/app/webogram.appcache @@ -1,6 +1,6 @@ CACHE MANIFEST -# 34 +# 36 NETWORK: * diff --git a/package.json b/package.json index 7000a99f..625a8004 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "bugs": { "url": "https://github.com/zhukov/webogram/issues" }, - "locales": ["en-us", "es-es", "de-de"], + "locales": ["en-us", "es-es", "de-de", "it-it", "ru-ru"], "homepage": "http://zhukov.github.io/webogram", "devDependencies": { "gulp": "~3.5.5",