Commit Graph

501 Commits (d790c27a19494346bc7293bee00026201f2910f0)

Author SHA1 Message Date
Joas Schilling d75e35b75e
Introduce the UI for password confirmation
Signed-off-by: Joas Schilling <coding@schilljs.com>
8 years ago
Julius Haertl d3d49c1e98
Apply firefox workaroud to svg filters
Signed-off-by: Julius Haertl <jus@bitgrid.net>
8 years ago
Joas Schilling 6c27b74e75
Fix the push state
Signed-off-by: Joas Schilling <coding@schilljs.com>
8 years ago
Julius Haertl 71275ced28
Workaround for disappearing app icons for Firefox before version 51
Signed-off-by: Julius Haertl <jus@bitgrid.net>
8 years ago
Joas Schilling 890f752a6b Merge pull request #1452 from nextcloud/appconfig-endpoint
Appconfig endpoint
8 years ago
Vincent Petry 25d9dce067
JS utility function to compare paths
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
8 years ago
Joas Schilling 0b1fb180a5
Make AppConfig part of the public API
Signed-off-by: Joas Schilling <coding@schilljs.com>
8 years ago
Morris Jobke 867f72a485
Remove deprecated breadcrumbs implementation
* was replaced by the version in files/

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Morris Jobke 33c3293d05
Remove OC.localStorage and object method
* use the localstorage APIs of the browser instead
* use new Object() instead

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Christoph Wurst 5ae6d62811
do not reload the page if the server is (temporarily) unreachable 8 years ago
Simon Eisenmann c80c5ad958 Fixup getURLParameter behavior
This commit further changes the behavior of getURLParmeter to handle
encoded parameter values and returns the decoded string and improves
behavior for parameters without value and multiple equals and other
similar cases which did not work before. See the comments at
http://stackoverflow.com/questions/1403888/get-escaped-url-parameter for
a list of the issues handled by the updated implementation.

This change does not change the general behavior of the function. Empty
or non existing parameters still return an empty string ('').
8 years ago
Simon Eisenmann 1e9d523046 Return '' instead of 'null'
This commit changes the behavior of getURLParameter(name) to return an
empty string when the parameter is not set or has empty value. Before it
returned 'null' as string.
8 years ago
Joas Schilling fe9ffd29a7
Always use the js console when available 8 years ago
Joas Schilling ee1c1b39b2
Update live timestamps to give a more live feeling 8 years ago
Thomas Pulzer 58f9340d93 Fixing infinite spinner animation
setupMainMenu() & setupUserMenu():
Changed click delegate to add the spinner animation only the primary mouse button was clicked without ctrl- or meta-key modifier
Adding mouseup delegate to hide the menu if the middle mouse button was clicked.

Redone #778
8 years ago
Morris Jobke 8e08b8c04e Revert "Fixing infinite spinning animation on user menu ctrl+click" 8 years ago
Morris Jobke 3e7710c0d8 Merge pull request #778 from nextcloud/Faldon-user_menu_ui
Fixing infinite spinning animation on user menu ctrl+click
8 years ago
Faldon 14bf180837 Removed debug code. 8 years ago
Thomas Pulzer b2b7fa4854 Fixed user and main menu closing on right mouse button click.
Fixed wrong variable assignment when trying to open link in new window.
8 years ago
Thomas Pulzer c5033670d5
Changed app and user menu delegates to mousedown events.
Added proper handling of primary mouse button click with and without ctrl-/meta-key modifier.
Added handlig of middle mouse button click.
8 years ago
Thomas Pulzer 8c9961aa22
Added OS X meta key check for stopping spinning animation in app and user menu. 8 years ago
Thomas Pulzer 1ab9477ac1
Fixed user menu to not show spinner on ctrl+click.
Fixes #616
8 years ago
Julius Haertl 6b807af619
Fix closing app menu on mobile 8 years ago
Joas Schilling 45c99c226b
Fix the HTML encoding when uploading a folder in FF when using french l10n 8 years ago
Hendrik Leppelsack c47833718f remove svg classes 8 years ago
Hendrik Leppelsack bc5c89e9c0 remove javascript png fallback for svg 8 years ago
Hendrik Leppelsack e5d8726859 remove ie8+9 support 8 years ago
Lukas Reschke e8e72aa910 Merge pull request #24434 from owncloud/permalinks
Permalinks
8 years ago
skjnldsv ea3cc2661d New animated loader 8 years ago
Vincent Petry 254576e1f7
Do not encode slashes in "dir" URL param in files JS 8 years ago
Vincent Petry fdeafef6a0
Auto-add fileid in URL for currently displayed folder 8 years ago
Lukas Reschke 2c4ef37025 Merge pull request #24126 from owncloud/err-reload-delay
Delay reloading the page if an ajax error occurs, show notification
8 years ago
Morris Jobke 6b66f2dfb4 Merge pull request #23990 from owncloud/heartbeat-debounce
Debounce heartbeat ajax calls to lower the number of requests
8 years ago
Robin McCorkell bd9a380d53 Delay reloading the page if an ajax error occurs, show notification 8 years ago
Christoph Wurst 05d203a989
replace $.parseJSON() by JSON.parse() 8 years ago
Christoph Wurst 59e268763c
remove deprecated jQuery.browser 8 years ago
Christoph Wurst 2d772eaaa8
Debounce heartbeat ajax calls to lower the number of requests
fixes #22397
8 years ago
Christoph Wurst 97d553b57a close navigation menu when opening app in new tab (#23914) 8 years ago
Christoph Wurst a2572ffec7 add loading feedback to user menu entries (#23916)
fixes #19857
8 years ago
Stefan Weil 62a5952a72 core: Fix typos (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
8 years ago
Vincent Petry 06e7856400 Adjust core unit tests for unload/reload cases 8 years ago
Vincent Petry d00f95578b Stronger fix for navigate away detection 8 years ago
Vincent Petry 6ed8acb15d Firefox returns 303 on cross-domain redirect
Added 303 to catch SSO cross-domain redirect in Firefox.
8 years ago
Vincent Petry ad1167a44d Detect user navigating away, don't interpret as ajax error
Whenever a user navigates away, all ajax calls will fail with the same
result like a cross-domain redirect (SSO). To distinguish these cases,
we need to detect whether the error is a result of the user navigating
away. For this, we introduce a new flag that will be set in
"beforeunload".

Additional handling was required for false positives in case "beforeunload" is
used (ex: cancelled upload) and the user cancelled the navigation.
8 years ago
Vincent Petry 8ea80e114a Accumulate notifications instead of blinking
This makes it possible to display multiple notifications.
If the options.type is set to "error", it will also add a close button.
8 years ago
Vincent Petry b8b77709c0 Add handler for global ajax errors 8 years ago
Thomas Müller 294dcb4eff Adding global error handler for ajax calls which run into redirections or unauthorized responses 8 years ago
Roeland Jago Douma aef43816c2 host and hostname are different things
host can contain the port (host of http://example.com:1234 is
example.com:1234) while hostname never contains a port. They can however
be similar. If you navigate to http://example.com then both host and
hostname will be example.com.

* Fixed docs
* added getHostName function
8 years ago
Vincent Petry 3b581b051f Expose display name in JS side
Adds a new method `OC.getCurrentUser` to get both the user id and
display name Could be used for a future Js
8 years ago
matthias-g 41c87531ff Update explanation of how to enable debug mode 8 years ago
Vincent Petry d4198607ec Expose whether user is an admin through a method
Which is nicer than an obscure global variable
8 years ago
Morris Jobke 6e096936e5 update JS humanFileSize to use KB instead of kB 8 years ago
Thomas Müller 9c550a07ed OC.FilePath has still a valid use case when generating paths to static files what for generateUrl cannot be used for - closes #15604 9 years ago
Lukas Reschke 2515cb17be Support pretty URLs
This changeset allows ownCloud to run with pretty URLs, they will be used if mod_rewrite and mod_env are available. This means basically that the `index.php` in the URL is not shown to the user anymore.

Also the not deprecated functions to generate URLs have been modified to support this behaviour, old functions such as `filePath` will still behave as before for compatibility reasons.

Examples:
http://localhost/owncloud/index.php/s/AIDyKbxiRZWAAjP => http://localhost/owncloud/s/AIDyKbxiRZWAAjP
http://localhost/owncloud/index.php/apps/files/ => http://localhost/owncloud/apps/files/

Due to the way our CSS and JS is structured the .htaccess uses some hacks for the final result but could be worse... And I was just annoyed by all that users crying for the removal of `index.php` ;-)
9 years ago
Vincent Petry f120846e29 Added OC.Files.Client Webdav-based files client 9 years ago
Joas Schilling 78c456b895 Allow creating OCS v2 links in JS 9 years ago
Vincent Petry a2cd9708f6 Set "ie" CSS class for IE10, IE11
Fixed border in file action menu
9 years ago
Joas Schilling f04151f69b Close the user menu when clicking it again 9 years ago
Hendrik Leppelsack 5a01dc44d6 append tipsys to body 9 years ago
Thomas Müller 56fdb0ac93 Merge pull request #19935 from owncloud/issue-19916-settings-menu-hide-on-file-action
Use the normal OC.menu JS for handling the Settings menu
9 years ago
Joas Schilling a0437591db Use the normal OC.menu JS for handling the Settings menu 9 years ago
Vincent Petry 89e3860e1a Disable app icon preview in apps page for IE
All IE versions are not able to properly upscale SVG icons unless the
said SVG files contain a "viewBox" attribute, which is not always the
case. Also we cannot guarantee that all third party apps will have this
attribute in their icons.

So for now, app icons will not be displayed in IE instead of broken
ones.
9 years ago
Vincent Petry c7aef6c368 Fix uploading avatar and root certs in IE8 9 years ago
Thomas Müller 681ab05e4d Merge pull request #19539 from owncloud/fix-multiselect-overlap-shorter
Fix filelist size issues, breadcrumb, multiselect
9 years ago
Vincent Petry f135128664 Fix filelist size issues, breadcrumb, multiselect
- calculate multiselect header width to exclude scrollbar
- call FileList._onResize() when sidebar is toggled ("appresized"), this
  also updates the breadcrumb width
- moved global getScrollBarWidth() to OC.Util namespace
9 years ago
Morris Jobke 4b3a5a257f Fix moment.js "a few seconds ago" with "seconds ago"
* fixes #18627
9 years ago
Vincent Petry dbb6692468 [IE8] Fix filetype icon sizes
Added hack that uses a "filter" CSS with explicit URL to fix the "New"
menu by scaling down icons and also fix the folder/filetype icon in the sidebar
by scaling it up.
9 years ago
Vincent Petry 71dabc6c13 Consider both hash params and query when parsing URL 9 years ago
Hendrik Leppelsack 3f0a870908 implement builder pattern in tipsy shim 9 years ago
Lukas Reschke f2d63d3518 Disable automatic evaluation of responses
If a response to a $.ajax() request returns a content type of "application/javascript"
JQuery would previously execute the response body. This is a pretty unexpected
behaviour and can result in a bypass of our Content-Security-Policy as well as
multiple unexpected XSS vectors.
9 years ago
Vincent Petry 7303b68577 Fix controls bar calculation
Controls bar calculation needs to take the sidebar visibility into
account.

Recalculation is now triggered when sidebar is toggled, using a new
app-content event "appresized".
9 years ago
Jan-Christoph Borchardt 4e53b5922d Merge pull request #18178 from owncloud/files-sidebar-actions
Sidebar file actions
9 years ago
Jan-Christoph Borchardt 970440f604 Merge pull request #18122 from owncloud/replace-tipsy
Replace tipsy with tooltip
9 years ago
Morris Jobke 6f909b19cc Merge pull request #17785 from owncloud/snapjs-sensitivity
fix mobile scrolling, lower sidebar sensitivity, fix #11193
9 years ago
Hendrik Leppelsack e5444a1a5d replace tipsys with tooltips 9 years ago
Vincent Petry aac7c19ab7 Fix showMenu animation callback 9 years ago
Vincent Petry 984ae8140d Fixed file actions menu to close when reclicking trigger
FileActionsMenu is now a backbone view.
The trigger and highlight handling is now done in the
FileActions.showMenu() method using events.
9 years ago
Vincent Petry ca34921cdf Implement file actions dropdown
File actions now have two types "inline" and "dropdown". The default is
"dropdown".
The file actions will now be shown in a dropdown menu.
9 years ago
Jan-Christoph Borchardt db40682b1f fix mobile scrolling, lower sidebar sensitivity, fix #11193 9 years ago
Vincent Petry ae27f90efe Fix app-content scrollbar when app-sidebar is open 9 years ago
Morris Jobke 5699fff889 Merge pull request #17175 from owncloud/add-download-feedback
Add loading spinner to download icon
9 years ago
Morris Jobke 4076f84f88 Merge pull request #17910 from owncloud/fix-modified-tooltip
Fix tooltip for modification time
9 years ago
Hendrik Leppelsack f67477206b fixed tooltip for modified date 9 years ago
Hendrik Leppelsack 6574dfcf23 remove title option from tipsy shim 9 years ago
Lukas Reschke 56cff46dc3 Add `fallback` to shim
Tipsy also supported the `fallback` element which will now not work anymore. To enhance compatibility we shall also implement it in the shim.

Fixes https://github.com/owncloud/core/issues/17870
9 years ago
Bernhard Posselt 582f07950f Merge pull request #17075 from owncloud/bootstrap-tooltip
Replace jQuery tipsy with bootstrap tooltip
9 years ago
Morris Jobke e18d0e26f6 Merge pull request #17599 from owncloud/fix-joinpaths-trailingslash
Fix OC.joinPaths with empty arguments
9 years ago
Vincent Petry b56a57e21c Add helper functions for host, port and webroot
These should be used in the future instead of location.*.
It will make it possible to stub these methods for writing unit tests
and simulating different URL schemes.
9 years ago
Vincent Petry 1b7d42c569 Fix OC.joinPaths with empty arguments
When empty arguments are given, the leading or trailing slash was not
detected properly.
9 years ago
Vincent Petry 119e27166e Add OC.joinPaths for convenient path joining 9 years ago
Hendrik Leppelsack 6f547a9960 fix tipsy not updating on reinitialization 9 years ago
Morris Jobke 3f5aa27d49 refactoring into proper methods 9 years ago
Hendrik Leppelsack 00b97dfbb1 remove debug messages 9 years ago
Hendrik Leppelsack f66e9af9a0 replaced tipsy with bootstrap tooltip 9 years ago
Hendrik Leppelsack e8507372e3 let buttons hide the sidebar 9 years ago
Jan-Christoph Borchardt 9332c8c266 remove slow fade animation for tipsy tooltip 9 years ago
Morris Jobke 51e4633187 Don't stop event execution for menu item click
* fixes #12326 - the settings menu is closed now, because the event is executed
9 years ago
Jan-Christoph Borchardt 701cb27a9e fix scrutinizer issues 9 years ago
Jan-Christoph Borchardt d728b85fdd adjust controls bar width to not overlay scrollbar 9 years ago
Jan-Christoph Borchardt d1db727d1f mock up missing elements in the tests 9 years ago