aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/js.js
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #7047 from ↵Björn Schießle2017-11-201-0/+1
|\ | | | | | | | | nextcloud/add-support-for-files-with-no-permissions Add support for files with no permissions
| * Add proper handling of files without permissionsDaniel Calviño Sánchez2017-11-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | Now a file gets its directory permissions only if it contained no permissions (they were undefined or null), but not if its permissions were set to "NONE". Besides that, now file actions that do not require any permission on the file to be performed can be used on files that have no permissions. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Fixed computation and removed unwanted scriptsJohn Molakvoæ (skjnldsv)2017-11-081-33/+0
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Reduce JSHint errors/warningsMorris Jobke2017-11-061-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fixes nextcloud/gallery#269Marin Treselj2017-07-281-2/+2
| | | | Signed-off-by: Marin Treselj <marin@pixelipo.com>
* Merge pull request #5244 from nextcloud/dynamic-percentual-appmenu-limitMorris Jobke2017-06-141-2/+20
|\ | | | | Now using dynamic percentual appmenu limit
| * Show at least 8 icons, don't use percentage on mobileJulius Härtl2017-06-141-1/+14
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Decimal percentage, dynamic appIcon widthPatrik Kernstock2017-06-101-3/+3
| | | | | | | | Signed-off-by: Patrik Kernstock <info@pkern.at>
| * Now using dynamic percentual appmenu limitPatrik Kernstock2017-06-041-1/+6
| | | | | | Signed-off-by: Patrik Kernstock <info@pkern.at>
* | execute eval in global scope, addresses #5314Arthur Schiwon2017-06-091-1/+1
|/ | | | | | | unsure whether this is properly supported everywhere, injection is not an option for us Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Closed #5121, remove appmenu limitPatrik Kernstock2017-05-261-5/+0
| | | | Signed-off-by: Patrik Kernstock <info@pkern.at>
* Merge pull request #4611 from nextcloud/js-use-dot-notationRoeland Jago Douma2017-05-021-2/+2
|\ | | | | Use dot notation for array access - JSLint recommendation
| * Use dot notation for array access - JSLint recommendationMorris Jobke2017-05-011-2/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #4610 from nextcloud/js-semicolonsLukas Reschke2017-05-011-7/+7
|\ \ | | | | | | Fix semicolon at end of JS lines
| * | Fix semicolon at end of JS linesMorris Jobke2017-05-011-7/+7
| |/ | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* / Fix variable definitions in oc dialogsMorris Jobke2017-05-011-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge branch 'master' into contactsmenuJan-Christoph Borchardt2017-04-261-1/+0
|\ | | | | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
| * Remove js debug loggingChristoph Wurst2017-04-251-1/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Contacts menuChristoph Wurst2017-04-251-2/+15
|/ | | | | | | * load list of contacts from the server * show last message of each contact Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix loading spinner for new app menuJulius Härtl2017-04-251-0/+15
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Responsive app menuJulius Härtl2017-04-251-0/+47
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #4027 from nextcloud/better-spreed-call-urlsRobin Appelman2017-03-271-9/+15
|\ | | | | Better spreed call urls
| * Allow to push a non-query URL to the browser historyJoas Schilling2017-03-241-9/+15
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Cleanup code as suggested by @icewind1991Lukas Reschke2017-03-261-16/+8
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Make asyncLukas Reschke2017-03-261-4/+2
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Fix callbackLukas Reschke2017-03-261-1/+1
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Use eval instead of $.scriptLukas Reschke2017-03-261-8/+23
|/ | | | | | Fixes https://github.com/nextcloud/server/issues/4067 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Properly clear heartbeat intervalVincent Petry2017-03-231-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add ignore_files to config,Felix Heidecke2017-03-201-0/+8
| | | | | | | | | | | | | | | | test files against ignore_files list on upload fix typo and indentation Move blacklist declaration to lib/public/Files/FileInfo.php, Rename *ignored to *blacklisted Mocked blacklist_files for testing Mocked blacklist_files for testing Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Harden JS by disabling jQuery evalLukas Reschke2017-03-161-0/+9
| | | | | | | | | | | | | Disable execution of eval in jQuery. We do require an allowed eval CSP configuration at the moment for handlebars et al. But for jQuery there is not much of a reason to execute JavaScript directly via eval. This thus mitigates some unexpected XSS vectors. As example try to insert `$('.fileinfo').html('<a href="asd"><script>alert(1)</script></a>');` with and without this patch in your browsers JS console when the file list is opened. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix popover positioning after window resizeJulius Haertl2017-03-161-5/+13
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Fix menu issuesJulius Haertl2017-03-161-1/+4
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Show app icons in the headerJulius Haertl2017-03-161-2/+2
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Merge pull request #3635 from individual-it/fix_quota_validationMorris Jobke2017-02-281-10/+12
|\ | | | | better quota validation
| * make values with white spaces possibleArtur Neumann2017-02-281-1/+1
| | | | | | | | | | | | a user might enter values with white spaces, and that should be possible and valid Signed-off-by: Artur Neumann <info@individual-it.net>
| * better quota validationArtur Neumann2017-02-281-9/+11
| | | | | | | | | | | | | | | | | | | | this fixes #3634 1. fixed computerFileSize to be more picky about incorrect values 2. more tests for computerFileSize 3. use computerFileSize to validate user quota Signed-off-by: Artur Neumann <info@individual-it.net>
* | Merge pull request #2602 from ↵Lukas Reschke2017-02-231-1/+1
|\ \ | | | | | | | | | | | | nextcloud/resize-the-controls-after-the-sidebar-slided-in Increase debounce time to make sure controls are resized after the sidebar disappeared
| * | Increase debounce time to make sure controls are resized after the sidebar ↵Marius Blüm2017-01-231-1/+1
| |/ | | | | | | | | | | disappeared Signed-off-by: Marius Blüm <marius@lineone.io>
* | Fix indentation and l10n compliance.m3ntalsp00n2017-02-081-3/+3
| | | | | | | | Signed-off-by: m3ntalsp00n <m3ntalsp00n@gmail.com>
* | showUpdate funciton allows updated messagesm3ntalsp00n2017-02-041-2/+36
|/ | | | Signed-off-by: m3ntalsp00n <m3ntalsp00n@gmail.com>
* Verify input, add more unit testsPatrick Paysant2016-12-191-10/+12
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Implements all comments from @PVince81Patrick Paysant2016-12-191-46/+44
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Adding computerFileSize in OC.UtilPatrick Paysant2016-12-191-0/+46
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* only reload on errors when logged inRobin Appelman2016-12-011-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Make sure the controls is resized after the sidebar disappearedJoas Schilling2016-11-281-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix some outdated namingJan-Christoph Borchardt2016-11-241-9/+9
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* set focus on input fieldBjoern Schiessle2016-11-241-0/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Use proper return functionLukas Reschke2016-11-211-2/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Use the existing promptJoas Schilling2016-11-181-37/+27
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Submit on enterRoeland Jago Douma2016-11-181-0/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>