Douwe Maan
09c85ccb6e
Use switch/when statement
2016-07-05 17:50:47 -04:00
Douwe Maan
0deec938ce
Double to single quotes
2016-07-04 13:58:05 -04:00
Douwe Maan
7e1c91e0d6
Add confirmation when canceling creating/editing with changes
2016-07-04 13:54:58 -04:00
Douwe Maan
88889d164d
Cancel creating or editing note by hitting Escape
2016-07-04 13:42:42 -04:00
Luke "Jared" Bennett
544ad086da
restricted note edit shortcut to only up key
...
Updated CHANGELOG
Removed CHANGELOG entry
Moved conditional to helper method
2016-06-17 18:45:48 +01:00
Robert Speicher
e20aa4581b
Fix note polling when a window has been hidden
...
`refresh` was called, `refreshing` was set to true, but then because
`document.hidden` was true, `getContent` was never called, and
`refreshing` never got reset to `false`, which stopped polling entirely
until refresh.
2016-06-13 16:23:38 -04:00
Luke Bennett and Luke "Jared" Bennett
ae736d81e1
Added a line to find the currently saved text and replace the markdown textarea text when cancelling
...
Updated CHANGELOG
Corrected the changes to store the markdown in a hidden input when edit starts and retrieve the original from that input when edit is cancelled
Replaced hidden input with form attribute
2016-06-07 22:25:54 +01:00
Fatih Acet and Z.J. van de Weg
8dc1fa0d8d
Updated MR notes.
2016-06-06 16:02:11 +02:00
Fatih Acet and Z.J. van de Weg
40c86c916e
Refactor awardsHandler methods to work with votesBlock.
2016-06-06 11:07:22 +02:00
ZJ van de Weg
2f9c2149a3
Backend awardables on comments
2016-06-06 11:03:39 +02:00
ZJ van de Weg
cbd7801b3d
Merge branch 'master' into awardables
2016-05-30 18:54:08 +02:00
Ben Yorke and Jacob Schatz
31e5f081e4
Update notes immediately after closing/reopening
2016-05-27 12:10:28 -04:00
Phil Hughes
d7bd7a3e7e
Fixed JS error when trying to remove discussion form
...
Closes #17778
2016-05-26 14:57:35 +01:00
Fatih Acet
5b046f8571
Fix variable name because of a wrong resolved merge conflict.
2016-05-23 22:38:34 +03:00
Fatih Acet
85e9eece7e
Fix displaying emoji only comments.
...
To render emoji in the emoji bar of an issue or MR we actually need the emoji unicode and unicode info is stored in the emoji menu widget. That widget could only be visible if user clicks the "Add" button and there may not be a widget when posting emoji only comments. So this change will check existence of the widget and create it before posting the emoji if it's not exist to render it correctly.
2016-05-23 21:33:58 +03:00
Douwe Maan
99d3e21f19
Extract LegacyDiffNote out of Note
2016-05-13 17:31:43 -05:00
Valery Sizov
180c45b37e
AwardsHandler follows code style conventions
2016-04-26 11:25:58 +03:00
Jacob Schatz
dd0478656d
Add move cursor to last character for editing comment also.
2016-04-16 16:08:53 -04:00
Jacob Schatz
262ca7b651
When editing put the cursor at the end of the textarea
2016-04-15 16:36:25 -04:00
Jacob Schatz
f2d94c5d86
Scroll to the last comment I made and edit it.
2016-04-15 16:05:37 -04:00
Phil Hughes
5dd01f572c
Destroy discussion form
2016-04-14 10:28:05 +01:00
Phil Hughes
82164a9f77
Notes form JS update
...
Updated the JS to have a standard class with standard actions for each form
Created ability to have toolbar buttons that insert different prefixes dependant upon the data-prefix attribute
2016-04-14 10:28:05 +01:00
Alfredo Sumaran
38a4f5cec6
Rename method and initialize .timeago inside
2016-04-11 16:45:03 -05:00
Alfredo Sumaran
3440c0e61f
Update datetime in .timeago elements
...
This should be done before .timeago() is called on the element
2016-04-07 12:02:43 -05:00
Phil Hughes
f62d7d261b
Removed console.log from notes
2016-04-04 10:49:08 +01:00
Phil Hughes
1f50833430
Updated tests
2016-04-04 10:48:49 +01:00
Phil Hughes
3b4c4dd7b3
Logged out box
2016-04-04 10:48:49 +01:00
Phil Hughes
0581df2971
Discussion form
2016-04-04 10:48:49 +01:00
Phil Hughes
f0d2f370cc
Removed css code that isnt used
2016-04-04 10:48:49 +01:00
Phil Hughes
af3284d98b
Focus style for comment form
2016-04-04 10:48:49 +01:00
Phil Hughes
3c2b0e7572
Added toolbar to comment form
2016-04-04 10:48:49 +01:00
Phil Hughes
0331fa3f3d
Restyling on elements in comment form
2016-04-04 10:48:49 +01:00
Phil Hughes
b7f0b22b9f
Started refactoring of note form
2016-04-04 10:48:49 +01:00
Phil Hughes
7dde8b2cf0
Fix spacing below edit note form
...
Also changed to allow the CSS to decide what should be hidden when editting
2016-03-18 17:23:54 +00:00
Phil Hughes
4885423fea
Fixes issue with close button not working on MR
...
Closes #14383
2016-03-18 11:36:48 +00:00
Robert Speicher
dc396d0fa4
Merge branch 'edited-text' into 'master'
...
Edited timeago text on comments
Unified the 'edited text' to be the same in descriptions and comments
Closes #5538
See merge request !3063
2016-03-17 20:35:06 +00:00
Jacob Schatz
d343c7a159
Merge branch 'comment-discard-button' into 'master'
...
Added discard button to comment form
Also changed the labels on the buttons to better match the action they are completing.
Closes #8057
See merge request !3085
2016-03-11 13:07:43 +00:00
Phil Hughes
6690d8e25b
Correctly uses a variable with the text
2016-03-11 10:03:35 +00:00
Jacob Schatz
4f954d6adc
Add error for ajax:error when submitting comments
...
Fixes #13814
2016-03-10 12:20:00 -05:00
Phil Hughes
3c6fdc7a0a
Fixed quick submit on note edit
...
Also removed the cloning of forms for note edits. Instead it just hides/shows the form seeing as it is already there
Closes #14094
2016-03-10 11:02:22 +00:00
Phil Hughes
3d99ffc862
Edited timeago text on comments
...
Unified the 'edited text' to be the same in descriptions and comments
Closes #5538
2016-03-10 08:39:47 +00:00
Phil Hughes
da6e38a889
Fixed tests for comment forms
2016-03-04 10:44:04 +00:00
Phil Hughes
e033b9a7f1
Added discard button to comment form
...
Also changed the labels on the buttons to better match the action they are completing.
Closes #8057
2016-03-04 08:42:22 +00:00
Alfredo Sumaran
74d41f8950
Use camelCase for variable names
2016-03-03 15:20:02 -05:00
Alfredo Sumaran
d9a1b6629d
Set @max_polling_steps to 4 so the last interval will be 120 seconds
2016-03-03 15:20:01 -05:00
Alfredo Sumaran
948ebfeb01
Provide @max_polling_steps instead of @limit_polling_interval
2016-03-03 15:20:01 -05:00
Alfredo Sumaran
5bd22b28fa
Prevent multiple refreshes if a refresh is happening
2016-03-03 15:20:01 -05:00
Roberto Dip and Alfredo Sumaran
3fbdca214c
Increase the notes polling timeout over time
...
A file called notes is loaded every ~15 seconds which checks for
updates to content on the page. This commit increases the polling
timeout over time (15, 30, 60, 120 seconds) and resets
it to 15 seconds if the AJAX call returns new notes
Fixes issue #13300
2016-03-03 15:20:00 -05:00
Phil Hughes and Jacob Schatz
741cf430f7
Correcly updates the status of the comment buttons on reload
...
Closes #5534
2016-03-03 12:39:50 -05:00
Jacob Schatz
ed8256a28b
Adds comment about event listener
2016-01-26 00:28:27 -05:00