linky topics

pull/14/head
Matthew Hodgson 2014-11-11 05:27:18 +00:00
parent 588dcf492b
commit 217c082ac1
1 changed files with 2 additions and 2 deletions

View File

@ -103,8 +103,8 @@
Set Topic
</button>
<div ng-show="room.current_room_state.state_events['m.room.topic'].content.topic || topic.isEditing">
<div ng-hide="topic.isEditing" ng-dblclick="topic.editTopic()" id="roomTopic">
{{ room.current_room_state.state_events['m.room.topic'].content.topic | limitTo: 200}}
<div ng-hide="topic.isEditing" ng-dblclick="topic.editTopic()" id="roomTopic"
ng-bind-html="room.current_room_state.state_events['m.room.topic'].content.topic | limitTo: 200 | linky:'_blank'">
</div>
<form ng-submit="topic.updateTopic()" ng-show="topic.isEditing" class="roomTopicForm">
<input ng-model="topic.newTopicText" ng-blur="topic.cancelEdit()" class="roomTopicInput" placeholder="Topic"/>