summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
Commit message (Collapse)AuthorAgeFilesLines
* Add proper ARIA attributes and structure to header for accessibility, thanks ↵Jan-Christoph Borchardt2018-04-181-0/+7
| | | | | | to @MarcoZehe Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Fix app menu, popovers and searchboxJulius Härtl2018-04-041-4/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add CSRF token controller to retrieve the current CSRF tokenChristoph Wurst2018-03-081-21/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use correct variablesJohn Molakvoæ (skjnldsv)2018-03-041-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Create special option to toggle header menu containerJohn Molakvoæ (skjnldsv)2018-03-041-4/+6
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Clean scss, use proper loading icon and menu position on narrow screensJohn Molakvoæ (skjnldsv)2018-03-041-2/+7
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix JSDocMorris Jobke2018-02-271-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* expose capabilities in jsBjoern Schiessle2018-02-271-0/+19
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Remove unused var in OC.Notification.showTemporaryChristoph Wurst2018-02-191-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fixes password input being prompted every time.Abijeet2018-01-081-2/+5
| | | | | | | | | Fixes #7106 - Echoing the current server time via a JS variable and storing the current time on page load in JS. - Calculating the diff and taking it into account when deciding whether to show the password confirmation. Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Fixed js typehint for showHtml methodsplitt3r2018-01-041-1/+1
|
* Merge pull request #7487 from nextcloud/no-password-confirm-with-ssoblizzz2018-01-031-1/+2
|\ | | | | disable password confirmation with SSO
| * disable password confirmation with SSOBjoern Schiessle2018-01-021-1/+2
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Force the drag to end when the navigation bar Snap is disabled by an appDaniel Calviño Sánchez2017-12-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a Snap was disabled it stopped listening to the events, but if a drag gesture was being performed it was kept as active. Thus, when the Snap was enabled again move events were handled as if the Snap had never been disabled, causing the gesture handling to continue where it was left. When the Snap for the navigation bar is disabled by an app it could be as a result of a different gesture being recognized by the app (for example, a vertical swipe) once both gestures have started. In that case when the other gesture ends and the Snap is enabled again any pointer movement will cause the navigation bar to slide until an "up" event is triggered again (obviously not the desired behaviour). Due to all this now when the Snap for the navigation bar is disabled by an app the current drag gesture for the navigation bar is ended. Note that this was added as a parameter to "Snap.disable()" instead of done unconditionally to keep back-compatibility with the previous behaviour (probably not really needed as it is unlikely that any app is using the Snap library relying on that behaviour... but just in case). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Make possible for apps to disallow the navigation bar slide gestureDaniel Calviño Sánchez2017-12-141-1/+35
|/ | | | | | | | | | | | | | | | | On narrow screens a slide gesture can be used to open or close the navigation bar. However that gesture could conflict at times with the gestures used by certain apps (for example, if the right sidebar is open the user may expect to close it by dragging it to the right, but that could open the navigation bar instead depending on how the events are handled). This commit makes possible for apps to disallow and allow again that slide gesture. In any case, note that applications can only disallow the gesture, but they can not enable it. That is, they can prevent the gesture from being used on narrow screens, but they can not make the gesture work on wide screens; they are always limited by the base rules set by the core. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* 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>