Douwe Maan
d909ae73dc
Actually submit comment on command-enter.
...
Resolves #1869 .
2015-02-11 12:21:11 +01:00
Douwe Maan
463d9f76e4
Autosave and autorestore unsaved comments.
...
Closes #1738 .
2015-02-07 20:55:17 +01:00
Douwe Maan
71668312c4
Submit comment on command-enter.
...
Fixes #1869 .
2015-02-05 21:56:25 +01:00
Stefan Tatschner
bf079c24af
Replace highlight.js with rouge-fork rugments
...
I decided to create a fork of rouge as rouge lacks a HTML formatter with
the required options such as wrapping a line with <span> tags.
Furthermore I was not really convinced about the clarity of rouge's
source code.
Rugments 1.0.0beta3 for now only includes some basic linting and a new
HTML formatter. Everything else should behave the same.
2015-01-15 13:41:11 +01:00
Dmitriy Zaporozhets
23498337b1
Clone comment form on edit. Fixes bug with disappearing textarea or cancel of edit
2015-01-14 23:09:30 -08:00
Dmitriy Zaporozhets
4babc50eb7
Huge set of fixes for comments logic
2015-01-14 22:42:58 -08:00
Dmitriy Zaporozhets
80e784edb8
Fix image drag-n-drop to diff comments
2015-01-14 21:43:31 -08:00
Dmitriy Zaporozhets
8045d96ea8
Fix diff comments
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-12-24 13:39:35 +02:00
Vinnie Okada
742e6eeed2
Merge branch 'upstream-master' into markdown-preview
...
Conflicts:
spec/routing/project_routing_spec.rb
2014-12-07 20:25:58 -07:00
Ciro Santilli
c0c8dccf2e
Export all coffee classes with @
2014-10-20 23:03:33 +02:00
Vinnie Okada
5700842ba8
Add Markdown preview to more forms
...
Enable Markdown previews when creating and editing issues, merge
requests, and milestones, and when editing notes.
2014-10-15 23:52:33 -05:00
Jacob Vosmaer
693cee89f9
Prevent notes polling when there are not notes
2014-09-29 17:32:56 +02:00
Marin Jankovski
dac5e6de5a
After comment is added, button should go back to Close button.
2014-09-08 14:07:31 +02:00
Dmitriy Zaporozhets
99425a124c
Post comment when hit close/reopen btn in comment form
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-09-01 15:37:53 +03:00
Dmitriy Zaporozhets
20dbc2a139
Merge pull request #7425 from Razer6/remove_dup_javascript
...
Remove duplicated setupNoteForm method
2014-09-01 14:03:10 +03:00
Robert Schilling
15c682fcb0
Disable 'Save changes' button if input is empty, fixes #6351
2014-08-04 20:29:17 +02:00
Robert Schilling
010ba5ec22
Remove duplicated setupNoteForm method
2014-08-04 09:55:57 +02:00
Ali Tavakoli
0b1cf50060
Added .closest() to find Reply button on click; fixes #401
...
This is to fix the issue where the icon-comment icon is clicked in the
Reply button of a note; the icon is used as the target and incorrectly
assumed to be the button itself, which causes the reply form to spawn
inside the button.
2014-07-09 18:16:24 -04:00
Dmitriy Zaporozhets
69baa3afb2
Dont render difscussion for commit diffs
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-24 20:22:33 +03:00
Dmitriy Zaporozhets
30912c75b8
Improve merge request comments
...
When add diff note on 'Changes' page - and then go to 'Discussions' tab
you will not see this discussion unless you reload a page. This commit
fixes it by rendering discussion on 'Discussion' page as soon as you
submit comment on 'Changes' page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-24 14:57:59 +03:00
Dmitriy Zaporozhets
1bb9aeb565
Fix specs. Fix note form reset after submit
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-24 14:10:36 +03:00
Dmitriy Zaporozhets
5cfaf945cd
Improve notes form UI/UX
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-24 13:06:44 +03:00
Evgeniy Sokovikov
24b68fdada
fix ctrl+enter note send
...
use argument e instead of event
2014-05-14 13:13:05 +04:00
skv-headless
a8624cbe59
submit notes forms by pressing ctrl+enter
2014-05-07 17:50:56 +04:00
Jacob Vosmaer
0b914e7ceb
Refresh notes when the page becomes visible
2014-04-29 17:21:58 +02:00
Jacob Vosmaer
e52f50c22f
Do not refresh notes on hidden tabs
2014-04-29 17:21:58 +02:00
Jacob Vosmaer
7ec5ff4dba
Pass last_fetched_at for notes to javascript
2014-04-28 12:21:49 +02:00
Dmitriy Zaporozhets
891ea6f6e6
Improve highlight for notes
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-01-27 18:18:18 +02:00
Dmitriy Zaporozhets
9c7d821cf7
Show selected attachment in comment form
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-01-12 18:47:58 +02:00
Dmitriy Zaporozhets
00056c82f2
Update votes ferom comments dynamically
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-12-27 14:25:03 +02:00
Dmitriy Zaporozhets
32c7310f4a
Clear refresh interval for notes. Fixes duplicate note rendering
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-12-27 14:11:19 +02:00
Dmitriy Zaporozhets
d4ec23b8b5
fix tests
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-12-26 09:39:55 +02:00
Dmitriy Zaporozhets
21b028b548
Improve tests and make preview for notes
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-12-25 23:21:26 +02:00
Dmitriy Zaporozhets
923bd2ecd2
Write new Notes coffee class to handle comments
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-12-25 22:31:18 +02:00