summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Add OC and OCA namespace declarations to the bundleChristoph Wurst2019-01-281-12/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Respect user locale in natural sort comparatorChristoph Wurst2019-01-221-5/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Watch for changes with css variables polyfillJulius Härtl2019-01-171-1/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add public API for loading js files asynchronouslyJulius Härtl2019-01-171-1/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix dialogs, button positionJan-Christoph Borchardt2018-11-301-0/+1
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* fixup! Use nextcloud-password-confirmationJohn Molakvoæ (skjnldsv)2018-11-121-4/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use nextcloud-password-confirmationJohn Molakvoæ (skjnldsv)2018-11-121-1/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix app menu calculation for random size of the right headerJulius Härtl2018-11-021-4/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #11988 from nextcloud/docs/jsdoc-buildMorris Jobke2018-10-251-3/+7
|\ | | | | JSdoc build fixes and move build script out of the root folder
| * Adjust some jsdocsJulius Härtl2018-10-241-3/+7
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | humanFileSize: use toLocaleStringClaas Augner2018-10-241-0/+13
|/ | | | | | | | | | | humanFileSize: add test with locale humanFileSize: use canonical locale humanFileSize: skip test w/o toLocaleString support humanFileSize: stub getCanonicalLocale OC.getCanonicalLocale: cover undefined case humanFileSize: fix getCanonicalLocale stub Signed-off-by: Claas Augner <git@caugner.de>
* Use jQuery.getScript to dynamically load scriptChristoph Wurst2018-10-141-9/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>
* Fix usage of deprecated OC.webrootChristoph Wurst2018-10-091-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #11679 from nextcloud/refactor/remove-ie8-apisMorris Jobke2018-10-081-29/+0
|\ | | | | Remove IE8 APIs
| * Remove outdated commentChristoph Wurst2018-10-081-8/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * Remove OC.isIE8Christoph Wurst2018-10-081-10/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * Remove OC.scaleFixForIE8Christoph Wurst2018-10-081-11/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #11682 from ↵Morris Jobke2018-10-081-11/+0
|\ \ | | | | | | | | | | | | nextcloud/refactor/remove-deprecated-unused-fileDownloadPath Remove deprecated and unused fileDownloadPath
| * | Remove deprecated and unused fileDownloadPathChristoph Wurst2018-10-081-11/+0
| |/ | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #11681 from ↵Morris Jobke2018-10-081-7/+0
|\ \ | | | | | | | | | | | | nextcloud/refactor/remove-deprecated-getScrollBarWidth Remove deprecated window.getScrollBarWidth
| * | Remove deprecated window.getScrollBarWidthChristoph Wurst2018-10-081-7/+0
| |/ | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / Remove deprecated SVG helpers for old IEsChristoph Wurst2018-10-081-27/+0
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>