summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/notes.js.coffee
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Make notes JS require its dependenciesRobert Speicher2015-05-061-3/+11
|
* Update task list behavior for NotesRobert Speicher2015-05-061-0/+17
|
* Merge branch 'clear-note-form-on-succcess' into 'master'Dmitriy Zaporozhets2015-03-291-1/+8
|\ | | | | | | | | | | | | | | Prevent note form from being cleared when submitting failed. When you try to submit a comment while you're not connected to the internet or while your connection is having trouble, the AJAX request would fail and the note would be deleted :cry: See merge request !468
| * Prevent note form from being cleared when submitting failed.clear-note-form-on-succcessDouwe Maan2015-03-271-1/+8
| |
* | Prevent holding Control-Enter or Command-Enter from posting comment multiple ↵Douwe Maan2015-03-271-0/+1
|/ | | | times.
* Remove upvotes js logic since it does not work as expected anywayDmitriy Zaporozhets2015-03-201-1/+1
|
* Remove note attachment file selector.Douwe Maan2015-02-171-13/+0
|
* Merge branch 'md-preview-class' into 'master'Dmitriy Zaporozhets2015-02-171-4/+4
|\ | | | | | | | | | | | | | | Make sure Markdown previews always use the same styling as the eventual destination. Font size, image width and code-block styling weren't accurate between the markdown preview and the issue/wiki/note body. See merge request !1514
| * Make sure Markdown previews always use the same styling as the eventual ↵Douwe Maan2015-02-171-4/+4
| | | | | | | | destination.
* | Properly clear notes bindings to prevent double comments on Ctrl-Enter.Douwe Maan2015-02-161-1/+1
|/
* Actually submit comment on command-enter.Douwe Maan2015-02-111-1/+2
| | | | Resolves #1869.
* Autosave and autorestore unsaved comments.Douwe Maan2015-02-071-2/+15
| | | | Closes #1738.
* Submit comment on command-enter.Douwe Maan2015-02-051-1/+1
| | | | Fixes #1869.
* Replace highlight.js with rouge-fork rugmentsStefan Tatschner2015-01-151-7/+0
| | | | | | | | | | 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.
* Clone comment form on edit. Fixes bug with disappearing textarea or cancel ↵Dmitriy Zaporozhets2015-01-141-3/+6
| | | | of edit
* Huge set of fixes for comments logicDmitriy Zaporozhets2015-01-141-2/+9
|
* Fix image drag-n-drop to diff commentsDmitriy Zaporozhets2015-01-141-0/+2
|