mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 03:44:56 -04:00
BF: made input autofocus work when opening the room topic input
This commit is contained in:
parent
7e7eb0efc1
commit
af44e9556d
2 changed files with 6 additions and 2 deletions
|
@ -58,6 +58,11 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput'])
|
|||
$scope.topic.newTopicText = "";
|
||||
}
|
||||
|
||||
// Force focus to the input
|
||||
$timeout(function() {
|
||||
angular.element('.roomTopicInput').focus();
|
||||
}, 0);
|
||||
|
||||
$scope.topic.isEditing = true;
|
||||
},
|
||||
updateTopic: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue