Commit graph

14 commits

Author SHA1 Message Date
Douwe Maan
1886d727f7 Add API project upload endpoint 2016-01-07 13:37:14 +01:00
Robert Speicher
73eca2a95e Decouple Markdown previews from DropzoneInput 2015-11-25 16:36:04 -05:00
Robert Speicher
4e54b82326 Apply syntax highlighting to Markdown previews 2015-09-10 15:38:24 -04:00
Nikita Verkhovin
17bab5022f Add dropzone upload progress 2015-08-10 13:18:02 +06:00
Daniel Gerhardt
1ea2dfa5de Do not add the same icon multiple times to dropzones
Some DOM queries were to broad which caused paperclip icons and spinners
to be added multiple times to a dropzone in case of multiple dropzones
on a page.
2015-07-10 19:46:40 +02:00
Douwe Maan
5256b5cc06 Prefer jQuery on to bind, and don't use .js class. 2015-06-05 12:13:02 +02:00
Douwe Maan
4ae67fcaef Show warning when a comment will add 10 or more people to the discussion. 2015-06-05 12:07:13 +02:00
Stan Hu
dfd256f29e Support configurable attachment size via Application Settings
Fix bug where error messages from Dropzone would not be displayed on the issues page

Closes #1258
2015-04-02 00:04:08 -07:00
Douwe Maan
4036fb167d Change textarea upload hover icon from picture to paperclip. 2015-02-17 22:23:31 +01:00
Douwe Maan
d2ebdf664b Refactor. 2015-02-17 22:23:31 +01:00
Hannes Rosenögger
9bf8480b4a Generalize the image upload in markdown
This commit generalizes the image upload via drag and drop so it supports all files.
It also adds access control for these files.
2015-02-17 22:20:44 +01:00
Douwe Maan
639c93b4f2 Don't have Markdown preview fail for long content by using POST rather than GET.
See https://github.com/gitlabhq/gitlabhq/issues/8611.
2015-02-06 11:23:12 +01:00
Marco Cyriacks
a54e9e5459 Fix raw image paste from clipboard
This patch binds the textarea (markdown area) paste event to the
handlePaste() function (that was already present).

Furthermore the event processing is improved in the following way:

- The default paste event handler of the browser is only disabled if the
  browser fully supports clipboardData AND there realy is image data in
  the event object. In all other cases (no support or no image) the
  default handler processes the text paste.
- Some obsolete code was removed.
- The pasteText() function (which is somehow buggy because it places the
  cursor at the end of the text independantly from its position before the
  paste) is only used to place the image link after image data was pasted.
2015-02-01 22:26:34 +01:00
Dmitriy Zaporozhets
80e784edb8 Fix image drag-n-drop to diff comments 2015-01-14 21:43:31 -08:00