Commit Graph

35 Commits

Author SHA1 Message Date
Filipa Lacerda f6e339141d
Backport of methods and components added in EBackport of methods and components added in EEE 2018-01-03 21:03:39 +00:00
Clement Ho fe93f98275 Update text_utility.js 2017-11-17 16:53:18 +00:00
Clement Ho 56a0415846 Fix potential EE conflict 2017-11-16 13:34:35 -06:00
Clement Ho 421acc9a53 Merge branch 'master' into backport-add-epic-sidebar 2017-11-13 13:21:16 -06:00
Filipa Lacerda 1ff3f1a4f7 Export text utils as ES6 modules 2017-11-13 09:11:54 +00:00
Clement Ho 74b87f02db Backport of add-epic-sidebar 2017-11-10 17:41:04 -06:00
Filipa Lacerda 67f4408d74 Fix bad type checking to prevent 0 count badge to be shown 2017-10-10 07:47:42 +00:00
Phil Hughes 2c95411737 Fixed multi-line markdown in issue edit form
Closes #34318
2017-06-26 16:23:06 +01:00
Phil Hughes 5227ea5bc4 fixed up weird karma specs with tooltip
the tooltip mixin was changed because of a weird bug where the tooltip wouldn't show. This was wrong as the bug was actually caused by the text utility method
2017-05-26 14:38:38 +01:00
Mike Greiling 5bd549187a update remaining uses of CJS syntax to ES module syntax 2017-05-16 15:52:40 -05:00
Alfredo Sumaran e1e6e946d8 Remove IIFEs from files in cycle_analytics_bundle.js 2017-04-10 20:02:55 -05:00
Jan Christophersen 7abdc24c7e Only add a newline in Markdown Editor if the current line is not empty 2017-03-02 19:22:29 +01:00
mhasbini 0a53a3d966 change todos counter position & format ( for large counts ) 2017-02-21 21:21:49 +02:00
Filipa Lacerda f8a736d028 Merge branch 'remove-imports-loader-window-bind' into 'master'
Remove window-binding hack with imports-loader

See merge request !9123
2017-02-20 10:42:39 +00:00
Mike Greiling 0f31c5a92b replace implicit this == window with explicit binding 2017-02-17 16:58:32 -06:00
Alfredo Sumaran bf30a78064 Make sure events have most properties defined 2017-02-10 16:17:58 -05:00
Alfredo Sumaran 7b20784715 Revert "Merge branch 'add-additional-checks-to-ca-data' into 'master' "
This reverts commit b7c5ca499d, reversing
changes made to 9745c98bb7.
2017-02-10 15:21:45 -05:00
Alfredo Sumaran f193ef16c0 Make sure events have most properties defined 2017-02-10 03:42:26 -05:00
Phil Hughes 4428bb27b7 Removed Masonry, instead uses groups of data
Added some error handling which reverts the frontend data changes &
notifies the user
2017-02-03 17:02:44 +03:00
Mike Greiling ccada28f30 resolve all padded-blocks eslint violations 2017-01-18 17:16:41 -06:00
Mike Greiling e7b5945c59 resolve all semi and no-extra-semi eslint violations 2017-01-18 17:15:27 -06:00
Clement Ho 6700b76bec Fix eslint 2017-01-09 16:01:24 -06:00
Clement Ho 5116db243a Convert to single quotes 2017-01-09 16:01:21 -06:00
Clement Ho e36d323271 Add dropdown offset to match input cursor 2017-01-09 16:01:03 -06:00
Phil Hughes a713a29aad Fixed first newline not working 2016-12-21 11:32:41 +00:00
Phil Hughes fecebc7991 Fixed new line being included in bold/italic in GFM form
Closes #25456
2016-12-21 09:54:54 +00:00
Kamil Trzcinski 8d0018444d Merge remote-tracking branch 'origin/master' into 22539-display-folders 2016-11-18 20:20:30 +01:00
Filipa Lacerda d418d4990e Adds humanize function equivalent to ruby 2016-11-16 11:57:56 +00:00
Luke "Jared" Bennett 7cefaea876
explicitly disable eslint inline 2016-11-15 16:30:34 +00:00
Fatih Acet f879319840 Merge branch 'add-todo-toggle-event' into 'master'
Add todo toggle event

## What does this MR do?
Adds a custom jQuery event `todo:toggle` to detect when a new todo is added so that the respective todo counters (header navigation and sidebar) can update as needed

## Are there points in the code the reviewer needs to double check?

*  I wasn't sure whether each `spec` should be modularized based on the html templates or whether they should be separated based on function. There are some crossovers between the `dashboard_spec` and the `header_spec`.
* The naming conventions for `sidebar` and `right_sidebar` were a little confusing since they were named the opposite in their `specs`. I made a few assumptions and named a few files based on what I thought they should be named. I'd be happy to change it to something else though 😄  

## Why was this MR needed?
This resolves an existing issue where the todo count on the sidebar would not update (until refresh) and refactors the existing methods that are used to update the todo counters (header navigation and sidebar)

## What are the relevant issue numbers?
Closes #20140

## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- Tests
  - [x] Added for this feature/bug
  - [x] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !5724
2016-10-27 13:28:40 +00:00
Clement Ho f610f69ab9 Add todo toggle event 2016-10-26 16:28:56 -05:00
winniehell 02f94cf038 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
Jared Deckard 7f6474b269 Restore comments lost when converting CoffeeScript to JavaScript 2016-09-08 12:23:12 -05:00
Luke Bennett 32060d45a2
Moved truncation method chain to utility method 2016-08-18 14:22:14 +01:00
Fatih Acet aaa9509d12 ES6ify all the things! 2016-07-24 23:45:11 +03:00