summaryrefslogtreecommitdiffstats
path: root/apps/comments/js
Commit message (Collapse)AuthorAgeFilesLines
* Do not parse HTML in user id and display nameJoas Schilling2018-07-231-16/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update commentstabview.jsrakekniven2018-03-021-1/+1
| | | | | | | Changed typo reported at GitHub. See https://www.transifex.com/nextcloud/nextcloud/translate/#de_DE/$/91002505?issue=yes Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* format links in commentsArthur Schiwon2018-01-031-3/+7
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Show max warning comment lenth againRoeland Jago Douma2018-01-021-1/+1
| | | | | | | | | Fixes #7414 Since we no longer use an input field we have to use text instead of val. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #7252 from nextcloud/send-comment-on-enterMorris Jobke2017-12-081-2/+6
|\ | | | | Submit comments with Enter and use Shift+Enter for new lines
| * Fix Enter sending comment instead of adding autocomplete item to messageDaniel Calviño Sánchez2017-12-071-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | When the autocomplete popover is shown the At.js plugin listens on the message input field for key down events, and when Enter is pressed it adds the selected item to the message. However, as "_onTypeComment" also handles key down events for the message input field, when Enter was pressed the comment was submitted and At.js had no chance to add the item before that happened. Now when Enter is pressed and the autocomplete popover is shown the comment is not submitted, and thus At.js adds the selected item to the message as expected. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Submit comments with Enter and use Shift+Enter for new linesDaniel Calviño Sánchez2017-11-231-2/+3
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Merge pull request #7256 from ↵blizzz2017-11-271-11/+23
|\ \ | | | | | | | | | | | | nextcloud/fix-cursor-for-avatar-and-user-names-in-comments Fix cursor for avatar and user names in comments
| * | Replace with non-deprecated JS callLukas Reschke2017-11-271-1/+1
| | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * | Disable contacts menu for mentions to current user in comment messagesDaniel Calviño Sánchez2017-11-271-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | The contacts menu is not shown for avatars and user names in the author row if they represent the current user. For consistency, and because the contacts menu provides no value when shown for the current user, this commit also disables the contacts menu for mentions to the current user. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Disable contacts menu for mentioned users in comments being composedDaniel Calviño Sánchez2017-11-271-5/+12
| | | | | | | | | | | | | | | | | | | | | The contacts menu does not provide too much value for users mentioned in a message being composed, so it is now disabled in this case. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Fix cursor for author row and avatars in commentsDaniel Calviño Sánchez2017-11-261-4/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When it was on an author row the cursor was shown as a pointer, even if clicking on the author row itself does nothing. On the other hand, avatars used the default cursor, even if clicking on them either shows the contacts menu (in the case of the author row, only when the avatar is for a different user than the current one) or inserts a mention (for avatars shown in the list of suggested mentions), depending on the case. Now, the author row uses the default cursor, and avatars (and their associated user name) use a pointer cursor if clicking on them will trigger an action (either showing the contacts menu or inserting a mention). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Merge pull request #7266 from ↵Morris Jobke2017-11-271-3/+3
|\ \ | | | | | | | | | | | | nextcloud/fix-input-field-not-disabled-while-a-comment-is-being-sent Fix input field not disabled while a comment is being sent
| * | Fix input field not disabled while a comment is being sentDaniel Calviño Sánchez2017-11-231-3/+3
| |/ | | | | | | | | | | | | | | | | | | Since the change of the text area to a content editable div the input field was no longer disabled while a new comment was being sent. It was caused by still trying to disable the div using the "disabled" property, which works only on real input fields; when using a content editable div the way to disable it is by setting "contenteditable" to "false". Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Show delete working icon at the same position as the delete iconDaniel Calviño Sánchez2017-11-241-1/+2
| | | | | | | | | | | | | | | | | | When a comment was being deleted the submit working icon was shown. Now the submit working icon is kept hidden in that case and a specific delete working icon, which is shown at the same position as the delete icon, is used instead. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Disable elements while a comment is being deletedDaniel Calviño Sánchez2017-11-241-0/+11
|/ | | | | | | | | | When a comment is being deleted the "disabled" class is added to the comment div, which causes it to look disabled. However, the input elements and the content editable div were not truly disabled, and thus it was still possible to interact with them. This commit ensures that they are properly disabled while the comment is being deleted. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* adjust jsunit testsArthur Schiwon2017-11-011-2/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix avatar loading for generic placeholdersArthur Schiwon2017-10-311-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* remove more vendor-imported files that aren't necessaryArthur Schiwon2017-10-318-260/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* simplify registration of manager in server containerArthur Schiwon2017-10-311-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* only ship minimized js filesArthur Schiwon2017-10-31154-35552/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix comment sorterArthur Schiwon2017-10-301-1/+1
| | | | | | | background: we have a flat hierarchy of comments, not a tree. therefore we can also remove again the unnecessary additions. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* preserve line breaksArthur Schiwon2017-10-301-0/+10
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* configurable amount of autocomplete results in commentsArthur Schiwon2017-10-271-1/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* apply our themingArthur Schiwon2017-10-271-3/+17
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* autocomplete on demandArthur Schiwon2017-10-261-13/+19
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* enable autocomplete when editing commentsArthur Schiwon2017-10-231-49/+75
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix unstable comment orderArthur Schiwon2017-10-231-13/+19
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix contactsmenu-popupArthur Schiwon2017-10-221-0/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* convert mentions after save to the plain format we useArthur Schiwon2017-10-221-43/+89
| | | | | | also ensures proper rendering, even of edited comments Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* when writing a comment, render mentions as they'd appear anywhereArthur Schiwon2017-10-221-12/+38
| | | | | | i.e. avatar with displaymenu and contactsmenu-popover Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* turn textarea to contenteditable divArthur Schiwon2017-10-221-14/+43
| | | | | | we will need it for nice formatting of the mentioned user Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* setup atwho autocompleteArthur Schiwon2017-10-221-0/+23
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add At.js and dependenciesArthur Schiwon2017-10-22165-1/+35818
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix mentioned user not clickable after posting or editing a commentDaniel Calviño Sánchez2017-05-081-3/+10
| | | | | | | | | | | | | | | | | | | The contactsMenu plugin was called on avatar elements from _postRenderItem, which is called when a new comment is added to the collection. Due to this contactsMenu was not called when messages were edited; when a new comment is posted _postRenderItem is called, but at that time the "mentions" attribute is not filled yet, so "@username" is not replaced by avatars in the message and thus contactsMenu has no avatars to be called on. Calling contactsMenu was moved to a new method, _postRenderMessage, which is called from _postRenderItem and from the success callback when fetching the model in _onSubmitSuccess (which replaces "@username" by avatars in the message after posting or editing a comment). Fixes #4555 Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* add contactsmenu popover to commentsGeorg Ehrke2017-04-261-1/+19
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Merge JS for commentsLukas Reschke2017-03-241-0/+9
| | | | | | Shaves off 6 requests. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* added quit option in commentstabview.jsnoveens2017-03-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added quit option in notif in app.js added quit option in notif in file-upload.js added quit option in notif in fileinfomodel.js added quit option in notif in filelist.js added quit option in notif in filelist.js added quit option in notif in tagsplugin.js added quit option in notif in statusmanager.js added quit option in notif in external.js added quit option in notif in versionstabview.js added quit option in notif in notification.js changes according to the latest review. timeout removed since there is a button to close it translation capability added typo fixed test files updated small errors fixed Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Always enable avatarsMorris Jobke2017-02-131-25/+9
| | | | | | | | | * we introduced this setting in the begining because our avatar support caused some performance issues, but we fixed them and should only provide one way how Nextcloud looks Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* mention property to follow same styleArthur Schiwon2016-12-231-3/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fixed size issues on main detail view and disappearing of share recipients ↵Michael Jobst2016-12-233-19/+36
| | | | | | | | | | | | | | | | | | (#26603) * fixed size issues on main detail view and disappearing of share recipients * Changes due to code comments * Moved reloadProperties() to FileInfoModel * Solved Scrutinizer issues * Bugfix: undefined value used on error * check if options are set for FileInfoModel.initialize() Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Move comments activities to the new APIJoas Schilling2016-11-161-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* avoid that all avatars are copied to the author row when editing commentsArthur Schiwon2016-10-211-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* consolidate error handlingArthur Schiwon2016-10-191-27/+41
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix avatar displaying after submit (either edit or new)Arthur Schiwon2016-10-191-3/+7
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* display avatar (if enabled) alongside displaynamesArthur Schiwon2016-10-191-1/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix regexArthur Schiwon2016-10-191-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* improve regex, fixes replacements of usernames with same trunkArthur Schiwon2016-10-191-1/+12
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* show displayname not uid in commit mentionsArthur Schiwon2016-10-192-17/+76
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #1407 from nextcloud/multiline_commentsMorris Jobke2016-10-111-2/+6
|\ | | | | Bring back multiline comments