summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/awards_handler.js
Commit message (Collapse)AuthorAgeFilesLines
* resolve all instances of no-undef eslint rule violationsclean-no-undefMike Greiling2016-12-141-1/+3
|
* explicitly disable eslint inlineexplicitly-disable-eslint-inlineLuke "Jared" Bennett2016-11-151-1/+1
|
* Cleaned up global namespace JSJosé Iván2016-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | Moved most of the functions that contained "window.doSomething" that were located at: - app/assets/javascripts/application.js To the following file: - app/assets/javascripts/lib/utils/common_utils.js The functions listed here: - window.ajaxGet - window.split - window.extractLast - window.rstrip - window.disableButtonIfEmptyField - window.disableButtonIfAnyEmptyField - window.sanitize - window.unbindEvents - window.shiftWindow Now will be accessible from the "gl.utils" namespace
* Merge branch 'eslint' into 'master' Fatih Acet2016-10-261-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add ESLint ## What does this MR do? - create `package.json` - add ESLint dependencies to `package.json` - add JavaScript linting to CI - add Rake task `lint:javascript`as alias for `eslint` (which itself is an alias for `npm run eslint`) ## Are there points in the code the reviewer needs to double check? Probably not. ## Why was this MR needed? My hovercraft was full of eels. ## What are the relevant issue numbers? - https://gitlab.com/gitlab-org/gitlab-ce/issues/13224#note_12537431 - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5006#note_13255658 See merge request !5445
| * disable ESLint for all JavaScript fileswinniehell2016-10-261-0/+1
| |
* | Refactored less readable existance checksJack Davison2016-10-261-1/+1
|/ | | | | | CoffeeScript generated JavaScript contains some unreadable expressions. This refactoring addresses complex uses of the exestential operator that produced unreadable Javascript.
* remove manual Cookie.set "path" option in favor of global settingMike Greiling2016-10-241-4/+1
|
* replace jquery.cookie vendor script with js.cookieMike Greiling2016-10-241-3/+3
|
* Added `@zeiv`s changes to fix awards search, including CHANGELOG where he is ↵Luke Bennett2016-09-271-1/+1
| | | | credited
* Restore comments lost when converting CoffeeScript to JavaScriptJared Deckard2016-09-081-0/+5
|
* Replace animateEmoji timeout with eventListenerClement Ho2016-09-061-5/+5
|
* use gitlab global root url as canonical base url for all javascript set ↵Mike Greiling2016-08-241-0/+1
| | | | cookies (closes #20435)
* Replace resetTooltip with bootstrap's fixTitleJack Davison2016-08-171-14/+6
| | | | | | | | | | * resetTooltip totally destroyed and regenerated the tooltip while fixTitle simply replaces the text in the existing element. * resetTooltip also called an asyncronous function with no suitable callback resulting in a messy setTimout workaround. fixTitle is syncronous.
* Fix duplicate "me" in award emoji tooltipJack Davison2016-08-171-1/+6
| | | | | | * Works by explicitly deleting out-of-date data attributes * No longer directly assigns to data-original-title
* Award tooltips refer to current user as "You"Jack Davison2016-08-171-8/+8
|
* Switch to using to_sentence to construct tooltipsJack Davison2016-08-171-5/+14
| | | | | | * Code in ruby now uses Array#to_sentence to construct award tooltips * Coffeescript uses a combination of regexes for the same result
* Truncated user list in award emoji tooltipsJack Davison2016-08-171-1/+1
| | | | | | | | | | | | | | * Only the first 10 names are displayed * Further users are indicated by "and X more." * String "and X more" is appended to the array THEN join is called * An oxford comma seperates the last name from "and X more" * In coffeescript "me" is now always prepended * Tests included
* Fix awardable button mutuality loading spinnersClement Ho2016-08-101-13/+1
|
* ES6ify all the things!Fatih Acet2016-07-241-0/+380