This commit is contained in:
Igor Zhukov 2017-08-11 21:19:07 +02:00
parent 213431735a
commit dd66075089
8 changed files with 29 additions and 14 deletions

View File

@ -1771,7 +1771,7 @@ angular.module('myApp.directives', ['myApp.filters'])
touch.pageY <= curBoundaries.top + curBoundaries.height
if (curHover != isHover) {
console.warn(dT(), 'change hover', isHover)
// console.warn(dT(), 'change hover', isHover)
element.toggleClass('im_send_form_hover', isHover)
curHover = isHover
}
@ -1791,7 +1791,6 @@ angular.module('myApp.directives', ['myApp.filters'])
$($window).on(voiceRecordEvents.move, updateVoiceHoveredClass)
$($window).one(voiceRecordEvents.stop, function(event) {
console.warn(111)
$($window).off(voiceRecordEvents.move, updateVoiceHoveredClass)
var isHover = updateVoiceHoveredClass(event, true)

View File

@ -531,6 +531,7 @@
"im_submit_edit_message": "Save",
"im_edit_message_title": "Edit message",
"im_voice_recording_label": "Release outside this form to cancel",
"im_voice_recording_cancel_label": "Release to cancel record",
"im_voice_processing_label": "Processing{dots}",
"login_sign_in": "Sign in",
"login_enter_number_description": "Please choose your country and enter your full phone number.",

View File

@ -1610,7 +1610,6 @@ MessageComposer.prototype.resetTyping = function () {
}
MessageComposer.prototype.setPlaceholder = function (newPlaceholder) {
console.warn(dT(), 'set placeholder', this.richTextareaEl)
;(this.richTextareaEl || this.textareaEl).attr('placeholder', newPlaceholder)
}

View File

@ -3564,6 +3564,14 @@ li.inline_result_sticker.composer_autocomplete_option_active a {
color: #CCC;
}
}
.im_send_form_hover .im_recorder_label_hout,
.im_recorder_label_hover {
display: none;
}
.im_send_form_hover .im_recorder_label_hover {
display: inline;
}
.im_voice_recording,
.im_processing_recording {

View File

@ -1311,7 +1311,7 @@ a.im_panel_peer_photo .peer_initials {
}
}
.im_send_form_hover .im_voice_recording .im_record {
background: #bfd9ed;
background: #cae9ff;
}
.icon-mic {

View File

@ -1493,7 +1493,7 @@ a.im_message_fwd_author {
}
}
.im_send_form_hover .im_voice_recording .im_record {
background: #bfd9ed;
background: #cae9ff;
}
.im_send_form_empty .im_submit {

View File

@ -24,10 +24,14 @@
<div class="im_voice_recorder_wrap">
<div class="im_recorder_indicator"><i></i></div>
<div class="im_recorder_time" ng-bind="voiceRecorder.duration | duration"></div>
<div class="im_recorder_label" ng-switch="voiceRecorder.processing" my-i18n>
<span ng-switch-when="true" my-i18n-format="im_voice_processing_label"></span>
<span ng-switch-default my-i18n-format="im_voice_recording_label"></span>
<div class="im_recorder_label" ng-switch="voiceRecorder.processing">
<span ng-switch-when="true" my-i18n="im_voice_processing_label">
<my-i18n-param name="dots"></my-i18n-param>
</span>
<span ng-switch-default>
<span class="im_recorder_label_hover" my-i18n="im_voice_recording_label"></span>
<span class="im_recorder_label_hout" my-i18n="im_voice_recording_cancel_label"></span>
</span>
</div>
</div>

View File

@ -15,10 +15,14 @@
<div class="im_voice_recorder_wrap">
<div class="im_recorder_indicator"><i></i></div>
<div class="im_recorder_time" ng-bind="voiceRecorder.duration | duration"></div>
<div class="im_recorder_label" ng-switch="voiceRecorder.processing" my-i18n>
<span ng-switch-when="true" my-i18n-format="im_voice_processing_label"></span>
<span ng-switch-default my-i18n-format="im_voice_recording_label"></span>
<div class="im_recorder_label" ng-switch="voiceRecorder.processing">
<span ng-switch-when="true" my-i18n="im_voice_processing_label">
<my-i18n-param name="dots"></my-i18n-param>
</span>
<span ng-switch-default>
<span class="im_recorder_label_hover" my-i18n="im_voice_recording_label"></span>
<span class="im_recorder_label_hout" my-i18n="im_voice_recording_cancel_label"></span>
</span>
</div>
</div>