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