summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
Commit message (Collapse)AuthorAgeFilesLines
* [stable14] Set Edge < 16 as incompatible with css varsJohn Molakvoæ (skjnldsv)2019-05-071-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* [stable14] Set Edge < 16 as incompatible with css varsJohn Molakvoæ (skjnldsv)2019-05-071-2/+7
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Respect user locale in natural sort comparatorChristoph Wurst2019-01-231-5/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix app menu calculation for random size of the right headerJulius Härtl2018-11-131-4/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use nextcloud-password-confirmationJohn Molakvoæ (skjnldsv)2018-11-121-1/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* fix - Add to favorites not working in IE11 - polyfill needed #12007Yevhenii Kostiuk2018-11-081-0/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Ignore "session_lifetime" if it can not be converted to a numberDaniel Calviño Sánchez2018-10-111-1/+3
| | | | | | | | | | | When "session_lifetime" can not be converted to a number the interval becomes a NaN due to dividing it by 2. This NaN was "dragged" over all the other mathematical operations and caused the csrftoken to be got again and again due to an infinite loop with no pauses in "setInterval". Now, the interval is set to the default value instead if the "session_lifetime" can not be converted to a number. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Merge pull request #10838 from nextcloud/header-fixes-and-public-noteMorris Jobke2018-08-241-1/+1
|\ | | | | Header fixes and public note
| * Fix header calculation and better public designJohn Molakvoæ (skjnldsv)2018-08-241-1/+1
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Fix keyboard menu element event detectionJohn Molakvoæ (skjnldsv)2018-08-221-2/+7
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #10310 from nextcloud/accessibility-headerMorris Jobke2018-07-251-3/+28
|\ | | | | Accessibility fixes for header and global elements
| * Remove deprecated keyboard events & propertiesKevin Ndung'u2018-07-241-3/+3
| | | | | | | | Signed-off-by: Kevin Ndung'u <kevgathuku@gmail.com>
| * Enter key on menu registrationJohn Molakvoæ (skjnldsv)2018-07-201-1/+13
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * Make left sidebar toggle also work with keyboardJan-Christoph Borchardt2018-07-201-2/+15
| | | | | | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* | Acceptance and mobile navigation fixesJohn Molakvoæ (skjnldsv)2018-07-241-1/+1
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* fix OC.getLocale()Georg Ehrke2018-06-271-1/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* OC.getLocale() now returns Locale and no longer LanguageThomas Citharel2018-06-271-0/+9
| | | | | | | Added OC.getLanguage() to get Language <html lang=''> still gets language, though according to IETF BCP47 locale should be good. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* IE11 css vars compatibilityJohn Molakvoæ (skjnldsv)2018-06-201-0/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Allow to specify custom text on admin password confirmation dialogsJulius Härtl2018-05-241-13/+29
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* 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>