|
|
@ -440,11 +440,11 @@ angular.module('myApp.directives', ['myApp.filters']) |
|
|
|
$scope.$emit('reply_button_press', button); |
|
|
|
$scope.$emit('reply_button_press', button); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$scope.$on('ui_keyboard_update', function () { |
|
|
|
$scope.$on('ui_keyboard_update', function (e, data) { |
|
|
|
onContentLoaded(function () { |
|
|
|
onContentLoaded(function () { |
|
|
|
scroller.updateHeight(); |
|
|
|
scroller.updateHeight(); |
|
|
|
scroller.scrollTo(0); |
|
|
|
scroller.scrollTo(0); |
|
|
|
$scope.$emit('ui_panel_update'); |
|
|
|
$scope.$emit('ui_panel_update', {blur: data.enabled}); |
|
|
|
}) |
|
|
|
}) |
|
|
|
}); |
|
|
|
}); |
|
|
|
onContentLoaded(function () { |
|
|
|
onContentLoaded(function () { |
|
|
@ -1212,10 +1212,14 @@ angular.module('myApp.directives', ['myApp.filters']) |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$scope.$on('ui_panel_update', function () { |
|
|
|
$scope.$on('ui_panel_update', function (e, data) { |
|
|
|
onContentLoaded(function () { |
|
|
|
onContentLoaded(function () { |
|
|
|
updateSizes(); |
|
|
|
updateSizes(); |
|
|
|
$scope.$broadcast('ui_message_send'); |
|
|
|
if (data && data.blur) { |
|
|
|
|
|
|
|
$scope.$broadcast('ui_message_blur'); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
$scope.$broadcast('ui_message_send'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$timeout(function () { |
|
|
|
$timeout(function () { |
|
|
|
$(scrollableWrap).trigger('scroll'); |
|
|
|
$(scrollableWrap).trigger('scroll'); |
|
|
@ -1539,6 +1543,9 @@ angular.module('myApp.directives', ['myApp.filters']) |
|
|
|
focusField(); |
|
|
|
focusField(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
$scope.$on('ui_message_blur', function () { |
|
|
|
|
|
|
|
composer.blur(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function focusField () { |
|
|
|
function focusField () { |
|
|
|
onContentLoaded(function () { |
|
|
|
onContentLoaded(function () { |
|
|
|