summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/notes.js.coffee
Commit message (Collapse)AuthorAgeFilesLines
* Fixed quick submit on note editquick-submit-note-editPhil Hughes2016-03-101-12/+19
| | | | | | Also removed the cloning of forms for note edits. Instead it just hides/shows the form seeing as it is already there Closes #14094
* Use camelCase for variable namesissue_13300Alfredo Sumaran2016-03-031-9/+9
|
* Set @max_polling_steps to 4 so the last interval will be 120 secondsAlfredo Sumaran2016-03-031-1/+1
|
* Provide @max_polling_steps instead of @limit_polling_intervalAlfredo Sumaran2016-03-031-2/+3
|
* Prevent multiple refreshes if a refresh is happeningAlfredo Sumaran2016-03-031-0/+4
|
* Increase the notes polling timeout over timeRoberto Dip2016-03-031-2/+20
| | | | | | | | | 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
* Correcly updates the status of the comment buttons on reloadPhil Hughes2016-03-031-3/+3
| | | | Closes #5534
* Adds comment about event listenerfeature/jschatz1/instant-issuable-historyJacob Schatz2016-01-261-0/+1
|
* Adds feature: Ajax Close/Open updates discussion automaticallyJacob Schatz2016-01-261-0/+2
| | | | | Triggers jQuery event Fixes #5544
* Fix indentation of methods chaining in CoffeeRémy Coutable2016-01-201-8/+8
| | | | [ci skip]
* Address some JS coding-style and HTML semantic issuesRémy Coutable2016-01-201-25/+28
| | | | | | - Replace 'rel' attributes with 'data' or 'id' attributes - Style jQuery methods chaining according to Jacob's guidelines - Rename a method
* Fix diff comments loaded by AJAX to load comment with diff in discussion tabRémy Coutable2016-01-191-25/+43
| | | | | | | This commits also fixes two minor issues: - Ensure notes that the current user is not allowed to see are not returned in the AJAX notes loading - Ensure the notes counter badge is decremented of 1 instead of 2
* Autosize the textarea in showEditFormRobert Speicher2016-01-161-0/+1
| | | | [ci skip]
* Fix javascript error with deleting messages in issue or merge requestdeleting-a-note-after-editing-another-results-in-a-javascript-errorJacob Schatz2016-01-141-4/+5
| | | | | | Elements searched for by jQuery no longer existed in the DOM. Javascript was also unnecessarily complex, for using jQuery Fixes #8109
* Merge remote-tracking branch 'origin/rs-autosize'Dmitriy Zaporozhets2016-01-141-0/+2
|\
| * Fix missing autosize requirers-autosizeRobert Speicher2016-01-131-0/+1
| |
| * Autosize textareasRobert Speicher2016-01-131-0/+1
| |
* | fixes bug with commenting on merge requestsclosing-mr-bug-fixJacob Schatz2016-01-131-0/+4
|/
* removes commented out code.Jacob Schatz2015-12-301-2/+0
|
* adds ajax to bottom discussion buttons. Now submits issue and closes via ajax.Jacob Schatz2015-12-291-14/+2
|
* base implementation of emoji picker [ci skip]Valery Sizov2015-12-221-1/+1
|
* Merge branch 'fix-delete-notes-on-merge-request-diff' into 'master'Robert Speicher2015-12-111-8/+16
|\ | | | | | | | | | | | | | | Fix delete notes on merge request diff Fixes #3971 See merge request !2061
| * Remove note from MR discussion when deleting it in the changes tabDouglas Barbosa Alexandre2015-12-101-8/+16
| |
* | Fix award-emojis alert flash messageGrzegorz Bizon2015-12-111-1/+1
|/ | | | | | | | | This adds a new feature to `Flash` that allows to pin it after a specified selector. This removes a fixed position from such award-emoji alert, and makes it responsive by design of selector that this alert is pinned to. Closes #3996
* Ensure new notes are highlighted properly on a merge request diffDouglas Barbosa Alexandre2015-12-091-3/+7
|
* Ensure notes are replaced on a merge request diff when they're updatedDouglas Barbosa Alexandre2015-12-091-1/+1
|
* Fix random failing test - delete attachmentfix-random-testDmitriy Zaporozhets2015-12-071-2/+2
| | | | | | | Make sure we wait for AJAX request to finish before end test and cleanup database Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove space before exclamation mark in award alertGrzegorz Bizon2015-12-051-1/+1
| | | | [ci skip]
* Combine new javascript Flash methods into oneGrzegorz Bizon2015-12-031-2/+1
|
* Pin flash message to top if award note is invalidGrzegorz Bizon2015-12-031-1/+3
|
* Show flash message instead of alert when note is invalidGrzegorz Bizon2015-12-031-1/+2
|
* Notify user when award-emoji comment is invalidGrzegorz Bizon2015-12-031-0/+4
|
* Scroll to awards after adding emoji-award commentGrzegorz Bizon2015-12-031-0/+1
| | | | | This makes it more intuitive, as user can see that something actually happened after adding emoji-only comment in long discussions.
* Emoji: fix image of emoji when it is submitted via commentValery Sizov2015-11-191-1/+1
|
* replace emoji references from class name to data [ci skip]Valery Sizov2015-11-191-1/+1
|
* award emojiValery Sizov2015-11-191-5/+4
|
* Revert "Merge pull request #9820 from huacnlee/avoid-render-form-in-notes-list"rs-revert-gh-9820Robert Speicher2015-11-161-6/+7
| | | | | This reverts commit 63144cd062f6d259f1f30b6e06eb92a16caa8dec, reversing changes made to 8ab5df9d872414b2cca3ebd16d57b89e2f19e06a.
* Avoid render edit_form in each notes.Jason Lee2015-11-121-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use RJS to render edit note feature. Before: ``` Rendered projects/notes/_note.html.haml (27.9ms) Rendered projects/_zen.html.haml (0.3ms) Rendered projects/notes/_hints.html.haml (0.7ms) Rendered projects/_md_preview.html.haml (3.9ms) Rendered projects/notes/_edit_form.html.haml (6.9ms) Rendered projects/notes/_note.html.haml (17.7ms) Rendered projects/_zen.html.haml (0.3ms) Rendered projects/notes/_hints.html.haml (0.6ms) Rendered projects/_md_preview.html.haml (3.4ms) Rendered projects/notes/_edit_form.html.haml (7.0ms) ``` After: ``` Rendered projects/notes/_note.html.haml (13.8ms) Rendered projects/notes/_note.html.haml (7.1ms) Rendered projects/notes/_note.html.haml (9.5ms) Rendered projects/notes/_note.html.haml (8.5ms) ``` This change reduce at least 6ms * N ('N' - number of notes).
* Remove "quick submit" behavior specific to the Notes JSRobert Speicher2015-10-071-7/+0
|
* Ensure notes are highlighted properly when they're updatedRobert Speicher2015-09-301-7/+9
|
* Simplify syntax highlighting of new notesRobert Speicher2015-09-101-2/+3
|
* Add syntax highlight scheme to notes rendered client-siders-highlight-new-notesRobert Speicher2015-09-041-0/+1
|
* Fix live notes refresh in relative URL deploymentsStan Hu2015-07-261-1/+0
|
* Fix file upload dialog for comment editingDaniel Gerhardt2015-07-171-1/+1
| | | | | | | | | | This fixes the file upload dialog which currently works for new comments but not for comment editing. The cause for this is a missing DOM class which causes traversal to the dropzone to fail. This is fixed by adding the expected `gfm-form` class to the edit form. It has to be added dynamically since adding it to the form template would break the form's layout and comment saving.
* Support commenting on a diff in side-by-side viewStan Hu2015-06-161-10/+35
| | | | Closes https://github.com/gitlabhq/gitlabhq/issues/9283
* Make submit hotkey available to all notes forms.Nicolas2015-06-091-5/+3
| | | | Addresses #2221.
* Javascripts don't need to require jquery or bootstrap explicitlyRobert Speicher2015-05-281-2/+0
|
* Workaround that doesn't add unwanted newline.Douwe Maan2015-05-211-4/+5
|
* Work around a Chrome 43 bug preventing note editingrs-issue-1568Robert Speicher2015-05-201-0/+7
|
* More JS dependency requirementsRobert Speicher2015-05-061-0/+1
|