Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Cleaned up global namespace JS | José Iván | 2016-11-03 | 1 | -0/+75 |
| | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | Move jquery.timeago to vendor directory | Alfredo Sumaran | 2016-11-03 | 1 | -182/+0 |
| | |||||
* | Merge branch 'add-todo-toggle-event' into 'master' remove-tooltip-text-truncation-from-pipeline-graph-build-node-tooltips | Fatih Acet | 2016-10-27 | 1 | -0/+3 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 :smile: ## 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 | ||||
| * | Add todo toggle event | Clement Ho | 2016-10-26 | 1 | -0/+3 |
| | | |||||
* | | disable ESLint for all JavaScript files | winniehell | 2016-10-26 | 13 | -0/+13 |
| | | |||||
* | | Close any open tooltips before page:fetch | Linus G Thiel | 2016-10-20 | 1 | -0/+8 |
|/ | |||||
* | MergeRequest new form load diff asynchronouslynew-merge-requests-commit-tab-active | Paco Guzman | 2016-10-06 | 1 | -0/+5 |
| | |||||
* | Merge branch 'issue-boards-filter-label-spaces' into 'master' | Fatih Acet | 2016-09-26 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed list issues not loading with spaces in filtered values ## What does this MR do? Vue resource is very kindly encoding our URL params when sending. However - we didn't actually want the `+` to be encoded because Rails reads that as a space, but doesn't read the encoded value as a space :confused: This converts the `+` into spaces :thumbsup: ## What are the relevant issue numbers? Closes #21920 See merge request !6258 | ||||
| * | Fixed list issues not loading with spaces in filtered valuesissue-boards-filter-label-spaces | Phil Hughes | 2016-09-08 | 1 | -1/+1 |
| | | | | | | | | | | | | Vue resource is kindly encoding our URL params but Rails sadly doesn't seem to understand them. Closes #21920 | ||||
* | | Restore comments lost when converting CoffeeScript to JavaScript | Jared Deckard | 2016-09-08 | 10 | -12/+21 |
|/ | |||||
* | Merge branch 'reduce-contributions-calendar-payload' into 'master' | Jacob Schatz | 2016-08-26 | 1 | -0/+8 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce contributions calendar data payload ## What does this MR do? Reduces the contributions calendar data payload by only passing contribution dates and counts ## Are there points in the code the reviewer needs to double check? Please double check my javascript code :smiley: ## Why was this MR needed? Reduce user's bandwidth and decrease website loading time ## What are the relevant issue numbers? Closes #20862 ## Screenshots (if relevant) Before: ![Screen_Shot_2016-08-11_at_3.55.55_PM](/uploads/382842b3c889978bb302bd9057701ec3/Screen_Shot_2016-08-11_at_3.55.55_PM.png) ``` new Calendar( {"1439269200":0,"1439355600":0,"1439442000":0,"1439528400":0,"1439614800":0,"1439701200":0,"1439787600":0,"1439874000":0,"1439960400":0,"1440046800":0,"1440133200":0,"1440219600":0,"1440306000":0,"1440392400":0,"1440478800":0,"1440565200":0,"1440651600":0,"1440738000":0,"1440824400":0,"1440910800":0,"1440997200":0,"1441083600":0,"1441170000":0,"1441256400":0,"1441342800":0,"1441429200":0,"1441515600":0,"1441602000":0,"1441688400":0,"1441774800":0,"1441861200":0,"1441947600":0,"1442034000":0,"1442120400":0,"1442206800":0,"1442293200":0,"1442379600":0,"1442466000":0,"1442552400":0,"1442638800":0,"1442725200":0,"1442811600":0,"1442898000":0,"1442984400":0,"1443070800":0,"1443157200":0,"1443243600":0,"1443330000":0,"1443416400":0,"1443502800":0,"1443589200":0,"1443675600":0,"1443762000":0,"1443848400":0,"1443934800":0,"1444021200":0,"1444107600":0,"1444194000":0,"1444280400":0,"1444366800":0,"1444453200":0,"1444539600":0,"1444626000":0,"1444712400":0,"1444798800":0,"1444885200":0,"1444971600":0,"1445058000":0,"1445144400":0,"1445230800":0,"1445317200":0,"1445403600":0,"1445490000":0,"1445576400":0,"1445662800":0,"1445749200":0,"1445835600":0,"1445922000":0,"1446008400":0,"1446094800":0,"1446181200":0,"1446267600":0,"1446354000":0,"1446444000":0,"1446530400":0,"1446616800":0,"1446703200":0,"1446789600":0,"1446876000":0,"1446962400":0,"1447048800":0,"1447135200":0,"1447221600":0,"1447308000":0,"1447394400":0,"1447480800":0,"1447567200":0,"1447653600":0,"1447740000":0,"1447826400":0,"1447912800":0,"1447999200":0,"1448085600":0,"1448172000":0,"1448258400":0,"1448344800":0,"1448431200":0,"1448517600":0,"1448604000":0,"1448690400":0,"1448776800":0,"1448863200":0,"1448949600":0,"1449036000":0,"1449122400":0,"1449208800":0,"1449295200":0,"1449381600":0,"1449468000":0,"1449554400":0,"1449640800":0,"1449727200":0,"1449813600":0,"1449900000":0,"1449986400":0,"1450072800":0,"1450159200":0,"1450245600":0,"1450332000":0,"1450418400":0,"1450504800":0,"1450591200":0,"1450677600":0,"1450764000":0,"1450850400":0,"1450936800":0,"1451023200":0,"1451109600":0,"1451196000":0,"1451282400":0,"1451368800":0,"1451455200":0,"1451541600":0,"1451628000":0,"1451714400":0,"1451800800":0,"1451887200":0,"1451973600":0,"1452060000":0,"1452146400":0,"1452232800":0,"1452319200":0,"1452405600":0,"1452492000":0,"1452578400":0,"1452664800":0,"1452751200":0,"1452837600":0,"1452924000":0,"1453010400":0,"1453096800":0,"1453183200":0,"1453269600":0,"1453356000":0,"1453442400":0,"1453528800":0,"1453615200":0,"1453701600":0,"1453788000":0,"1453874400":0,"1453960800":0,"1454047200":0,"1454133600":0,"1454220000":0,"1454306400":0,"1454392800":0,"1454479200":0,"1454565600":0,"1454652000":0,"1454738400":0,"1454824800":0,"1454911200":0,"1454997600":0,"1455084000":0,"1455170400":0,"1455256800":0,"1455343200":0,"1455429600":0,"1455516000":0,"1455602400":0,"1455688800":0,"1455775200":0,"1455861600":0,"1455948000":0,"1456034400":0,"1456120800":0,"1456207200":0,"1456293600":0,"1456380000":0,"1456466400":0,"1456552800":0,"1456639200":0,"1456725600":0,"1456812000":0,"1456898400":0,"1456984800":0,"1457071200":0,"1457157600":0,"1457244000":0,"1457330400":0,"1457416800":0,"1457503200":0,"1457589600":0,"1457676000":0,"1457762400":0,"1457848800":0,"1457931600":0,"1458018000":0,"1458104400":0,"1458190800":0,"1458277200":0,"1458363600":0,"1458450000":0,"1458536400":0,"1458622800":0,"1458709200":0,"1458795600":0,"1458882000":0,"1458968400":0,"1459054800":0,"1459141200":0,"1459227600":0,"1459314000":0,"1459400400":0,"1459486800":0,"1459573200":0,"1459659600":0,"1459746000":0,"1459832400":0,"1459918800":0,"1460005200":0,"1460091600":0,"1460178000":0,"1460264400":0,"1460350800":0,"1460437200":0,"1460523600":0,"1460610000":0,"1460696400":0,"1460782800":0,"1460869200":0,"1460955600":0,"1461042000":0,"1461128400":0,"1461214800":0,"1461301200":0,"1461387600":0,"1461474000":0,"1461560400":0,"1461646800":0,"1461733200":0,"1461819600":0,"1461906000":0,"1461992400":0,"1462078800":0,"1462165200":0,"1462251600":0,"1462338000":0,"1462424400":0,"1462510800":0,"1462597200":0,"1462683600":0,"1462770000":0,"1462856400":0,"1462942800":0,"1463029200":0,"1463115600":0,"1463202000":0,"1463288400":0,"1463374800":0,"1463461200":0,"1463547600":0,"1463634000":0,"1463720400":0,"1463806800":0,"1463893200":0,"1463979600":0,"1464066000":0,"1464152400":0,"1464238800":0,"1464325200":0,"1464411600":0,"1464498000":0,"1464584400":0,"1464670800":0,"1464757200":0,"1464843600":0,"1464930000":0,"1465016400":0,"1465102800":0,"1465189200":0,"1465275600":0,"1465362000":0,"1465448400":0,"1465534800":0,"1465621200":0,"1465707600":0,"1465794000":0,"1465880400":0,"1465966800":0,"1466053200":0,"1466139600":0,"1466226000":0,"1466312400":0,"1466398800":0,"1466485200":0,"1466571600":0,"1466658000":0,"1466744400":0,"1466830800":0,"1466917200":0,"1467003600":0,"1467090000":0,"1467176400":0,"1467262800":0,"1467349200":0,"1467435600":0,"1467522000":0,"1467608400":0,"1467694800":0,"1467781200":0,"1467867600":0,"1467954000":0,"1468040400":0,"1468126800":0,"1468213200":0,"1468299600":0,"1468386000":0,"1468472400":0,"1468558800":0,"1468645200":0,"1468731600":0,"1468818000":0,"1468904400":0,"1468990800":0,"1469077200":0,"1469163600":17,"1469250000":0,"1469336400":0,"1469422800":3,"1469509200":14,"1469595600":54,"1469682000":0,"1469768400":4,"1469854800":1,"1469941200":0,"1470027600":0,"1470114000":0,"1470200400":1,"1470286800":0,"1470373200":1,"1470459600":0,"1470546000":0,"1470632400":0,"1470718800":0,"1470805200":0,"1470891600":2}, '/u/root/calendar_activities' ); ``` After: ![Screen_Shot_2016-08-11_at_3.56.36_PM](/uploads/9325cdb8c0271075abee2a838c1a0787/Screen_Shot_2016-08-11_at_3.56.36_PM.png) ``` new Calendar( {"1469163600":17,"1469422800":3,"1469509200":14,"1469595600":54,"1469768400":4,"1469854800":1,"1470200400":1,"1470373200":1,"1470891600":2}, '/u/root/calendar_activities' ); ``` ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - Tests - [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 !5784 | ||||
| * | Reduce contributions calendar data payload | Clement Ho | 2016-08-25 | 1 | -0/+8 |
| | | |||||
* | | Automatically expand hidden discussions when accessed via a permalink hash ↵ | Mike Greiling | 2016-08-24 | 1 | -1/+11 |
|/ | | | | (closes #19304) | ||||
* | Only load Ace on Snippets and file edit pages. | Connor Shea | 2016-08-18 | 1 | -0/+2 |
| | |||||
* | Moved truncation method chain to utility method13664-abuse-report-page-should-have-a-maximum-width | Luke Bennett | 2016-08-18 | 1 | -1/+4 |
| | |||||
* | Update timeago to shorter representation19752-pipelines-finished-at | Annabel Dunstone | 2016-08-04 | 1 | -1/+37 |
| | |||||
* | Revert "md5 and utf_encode js libraries" | winniehell | 2016-08-02 | 2 | -281/+0 |
| | | | | This reverts commit 1bba46d66117b4a96d279fd964a45fe673db658c. | ||||
* | ES6ify all the things! | Fatih Acet | 2016-07-24 | 22 | -342/+411 |
| | |||||
* | Fix activity heatmap to show proper day name. | eanplatter | 2016-07-16 | 1 | -1/+1 |
| | |||||
* | Merge branch 'contrib-calendar-tooltip-name' into 'master' | Jacob Schatz | 2016-07-11 | 1 | -0/+4 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added day name to contributions calendar ## What does this MR do? Adds the day name text into the contributions calendar tooltip. ## What are the relevant issue numbers? Closes #19367 ## Screenshots (if relevant) ![Screen_Shot_2016-07-04_at_12.38.52](/uploads/edf6ac3454d479a345aee638875b7713/Screen_Shot_2016-07-04_at_12.38.52.png) See merge request !5065 | ||||
| * | Added day name to contributions calendarcontrib-calendar-tooltip-name | Phil Hughes | 2016-07-04 | 1 | -0/+4 |
| | | | | | | | | Closes #19367 | ||||
* | | Merge branch 'cs-cropper' into 'master' | Fatih Acet | 2016-07-08 | 2 | -2/+6 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split Cropper.js from the main JavaScript manifest. ## What does this MR do? Splits Cropper.js from the main JavaScript file. ## Are there points in the code the reviewer needs to double check? That the avatar uploader works. (It did in my testing) ## Why was this MR needed? Smaller JS payload. ## What are the relevant issue numbers? #14372 ## Does this MR meet the acceptance criteria? - Tests - [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 !4978 | ||||
| * | | Add a helper function for getting the page path from JS. | Connor Shea | 2016-06-29 | 1 | -2/+5 |
| | | | |||||
| * | | Split Cropper.js from the main JavaScript manifest. | Connor Shea | 2016-06-29 | 1 | -0/+1 |
| | | | |||||
* | | | Fixed markdown buttons in FFff-markdown-buttons-fix | Phil Hughes | 2016-07-05 | 1 | -2/+3 |
| |/ |/| | |||||
* | | Markdown toolbar inserts code blocksmd-toolbar-multiline-code | Phil Hughes | 2016-06-27 | 1 | -10/+35 |
|/ | | | | Closes #19173 | ||||
* | Reorganize the lib directory. | Connor Shea | 2016-06-23 | 14 | -0/+0 |
| | |||||
* | Re-implement page-specific JS in a better way. | Connor Shea | 2016-06-23 | 3 | -0/+5 |
| | | | | This makes larger libraries more cacheable and will allow us to use SRI with the dynamically included libraries. | ||||
* | Made markdown buttons work on all markdown textareas | Phil Hughes | 2016-06-17 | 1 | -12/+24 |
| | | | | Selecting multiple rows & a list correctly creates the selected text into a list | ||||
* | Improved design | Phil Hughes | 2016-06-17 | 1 | -105/+43 |
| | | | | Updated JS to remove undo manager - instead let the browser handle it all | ||||
* | Move buttons to upper right. | Jacob Schatz | 2016-06-17 | 1 | -1/+1 |
| | |||||
* | Proper class jquery selector for `off`. | Jacob Schatz | 2016-06-17 | 1 | -1/+1 |
| | |||||
* | No need to add bold for the class selector for removing events | Jacob Schatz | 2016-06-17 | 1 | -1/+1 |
| | |||||
* | Remove console.log | Jacob Schatz | 2016-06-17 | 1 | -4/+5 |
| | |||||
* | Add undo history once they click the enter or backspace key | Jacob Schatz | 2016-06-17 | 1 | -1/+12 |
| | |||||
* | Add redo state | Jacob Schatz | 2016-06-17 | 1 | -0/+3 |
| | |||||
* | Overwrite undo history | Jacob Schatz | 2016-06-17 | 1 | -4/+44 |
| | |||||
* | Initial markdown ez buttons | Jacob Schatz | 2016-06-17 | 1 | -0/+74 |
| | |||||
* | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ↵ | Fatih Acet | 2016-06-16 | 1 | -1/+18 |
|\ | | | | | | | | | | | | | category-search-dropdown # Conflicts: # app/assets/javascripts/lib/common_utils.js.coffee | ||||
| * | Prevent default disabled buttons and links.preventdefault-disabled-buttons | Fatih Acet | 2016-06-15 | 1 | -0/+7 |
| | | |||||
| * | Fix project star tooltip on the fly. | Fatih Acet | 2016-06-15 | 1 | -0/+12 |
| | | | | | | | | Introduced new util called updateTooltipTitle. | ||||
* | | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ↵ | Fatih Acet | 2016-06-10 | 2 | -1/+30 |
|\ \ | |/ | | | | | | | | | | | category-search-dropdown # Conflicts: # app/assets/javascripts/lib/common_utils.js.coffee | ||||
| * | Merge branch 'milestone-tooltip' into 'master' | Jacob Schatz | 2016-06-09 | 1 | -0/+24 |
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add milestone expire date to the right sidebar ## What does this MR do? Shows milestone expire date tooltip in the sidebar. It also shows the tooltip when sidebar is collapsed. ## Are there points in the code the reviewer needs to double check? `common_utils.js.coffee` and `milestones_helper.rb` should be reviewed deeply. ## What are the relevant issue numbers? https://gitlab.com/gitlab-org/gitlab-ce/issues/17355 ## Screencast ![zngAcytBWq](/uploads/bd8514506aa5010aef9b081455ee90af/zngAcytBWq.gif) See merge request !4448 | ||||
| | * | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into milestone-tooltip | Fatih Acet | 2016-06-08 | 1 | -1/+1 |
| | |\ | |||||
| | * | | Copy changes for milestone due dates. | Fatih Acet | 2016-06-08 | 1 | -1/+1 |
| | | | | |||||
| | * | | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into milestone-tooltip | Fatih Acet | 2016-06-06 | 1 | -0/+2 |
| | |\ \ | |||||
| | * | | | Added a new common util called $.timefor. | Fatih Acet | 2016-06-03 | 1 | -0/+24 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It will use $.timeago behind the scene and it does the opposite of what $.timeago does. $.timefor("Thu Jun 05 2016 23:40:39 GMT+0300 (EEST)") will return "3 days remaining". | ||||
| * | | | | Fix local timeago on user dashboard | Alfredo Sumaran | 2016-06-09 | 1 | -1/+8 |
| | |_|/ | |/| | | |||||
* | | | | Add new utils. | Fatih Acet | 2016-06-09 | 1 | -3/+16 |
| | | | | |||||
* | | | | Added a common util to get project slug. | Fatih Acet | 2016-06-07 | 1 | -0/+13 |
|/ / / |