diff --git a/app/css/app_mobile.css b/app/css/app_mobile.css index 028e2cd7..1a511cef 100644 --- a/app/css/app_mobile.css +++ b/app/css/app_mobile.css @@ -354,6 +354,14 @@ html { margin-top: -257px; } +.im_edit_panel_wrap { + padding-top: 2px; + padding-bottom: 4px; +} +.im_edit_panel_border { + margin-bottom: 3px; +} + .im_head_attach { display: block; float: right; diff --git a/app/js/directives.js b/app/js/directives.js index d17e8a66..97311965 100644 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -294,7 +294,7 @@ angular.module('myApp.directives', ['myApp.filters']) height: $($window).height() - (panelWrap && panelWrap.offsetHeight || 0) - (searchWrap && searchWrap.offsetHeight || 0) - - (Config.Navigator.mobile ? 60 : 200) + (Config.Navigator.mobile ? 100 : 200) }); $(contactsWrap).nanoScroller(); } diff --git a/app/js/lib/ng_utils.js b/app/js/lib/ng_utils.js index dd6654a8..039e2139 100644 --- a/app/js/lib/ng_utils.js +++ b/app/js/lib/ng_utils.js @@ -160,12 +160,7 @@ angular.module('izhukov.utils', []) deferred.reject(); }; - if (bytes instanceof FileEntry) { - bytes.file(function (file) { - fileWriter.write(file); - }, fileWriter.onerror); - } - else if (bytes instanceof Blob) { // is file bytes + if (bytes instanceof Blob) { // is file bytes fileWriter.write(bytes); } else { diff --git a/app/js/services.js b/app/js/services.js index 4baed141..36610e70 100644 --- a/app/js/services.js +++ b/app/js/services.js @@ -258,7 +258,7 @@ angular.module('myApp.services', []) return $modal.open({ templateUrl: 'partials/import_contact_modal.html', controller: 'ImportContactModalController', - windowClass: 'import_contact_modal_window page_modal' + windowClass: 'import_contact_modal_window' }).result.then(function (foundUserID) { if (!foundUserID) { return $q.reject(); @@ -338,7 +338,7 @@ angular.module('myApp.services', []) return $modal.open({ templateUrl: 'partials/phonebook_modal.html', controller: 'PhonebookModalController', - windowClass: 'phonebook_modal_window page_modal' + windowClass: 'phonebook_modal_window' }); } @@ -361,8 +361,10 @@ angular.module('myApp.services', []) phones: [] }; - for (var i = 0; i < this.result.tel.length; i++) { - contact.phones.push(this.result.tel[i].value); + if (this.result.tel !== undefined) { + for (var i = 0; i < this.result.tel.length; i++) { + contact.phones.push(this.result.tel[i].value); + } } if (this.result.photo) { contact.photo = URL.createObjectURL(this.result.photo[0]); diff --git a/app/partials/head.html b/app/partials/head.html index 7f92bd7f..037e6f44 100644 --- a/app/partials/head.html +++ b/app/partials/head.html @@ -41,8 +41,7 @@