summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/share.js
Commit message (Collapse)AuthorAgeFilesLines
* Disable JS plugin for sharing in public modeVincent Petry2015-01-261-1/+1
| | | | | This removes the logic that registers the share action and modifies the rows. Share actions aren't needed in the public file list.
* make Share button localized againVolkan Gezer2015-01-111-1/+1
| | | | it seems we have forgotten to use named FileAction
* Simple Plugin system for JavascriptVincent Petry2014-12-011-40/+34
|
* Merge pull request #9177 from owncloud/jsdocexperimentVincent Petry2014-11-131-3/+15
|\ | | | | Improved JS Docs + added build script for JS Docs
| * Improved Javascript docs for JSDocVincent Petry2014-10-311-3/+15
| | | | | | | | | | | | Added namespaces so that JSDoc can find them. Fixed a few warnings. Improved some comments.
* | Keep the share permissions from mountpointsRobin Appelman2014-10-311-1/+2
| |
* | Dont' use mountpoint permissions as share permissions for external storagesRobin Appelman2014-10-311-0/+4
|/
* reduce share action text to the user name onlyThomas Müller2014-07-141-1/+1
|
* Use fileActionsReady to re-render sharing iconsVincent Petry2014-07-011-38/+52
| | | | | | | | | Whenever file actions are modified, either by registering new actions or when appending a new page of entries, the sharing app is now notified so it can correctly refresh the sharing icon status. Additionally, the core's loadIcons() method is also used to load the existing shares and also refresh the sharing icons afterwards.
* Use attr() instead of data() so the item ids work as intendedJoas Schilling2014-06-301-1/+1
| | | | Fix #8841
* Sanitize name of shareeLukas Reschke2014-06-141-1/+1
| | | Fixes a XSS introduced with https://github.com/owncloud/core/commit/271684dcfec16122b88e03780b41af7120f27e45
* don't allow to share single files with delete permissions, user should only ↵Bjoern Schiessle2014-06-061-2/+7
| | | | be possible to unshare a single file but never to delete it
* Do not update action icon recipients for file listVincent Petry2014-06-041-0/+5
| | | | | | | | Since the files app doesn't have the recipient information on load it cannot initially render the recipients in the action icons. For this reason the action icon will not be updated with the recipients after changing the shares, for consistency.
* Use recipient display names when updating shares in the UIVincent Petry2014-06-041-4/+6
| | | | | | | | | | | Since OC.Share didn't have any array containing the list of shares for the current file, OC.Share.currentShares has been introduced to contain the full share item structure instead of the reduced one OC.Share.itemShares. The event "sharesChanged" is now passing OC.Share.currentShares, which itself includes the display name to be displayed for the recipients in the action icon.
* Multiple fixes to sharing overviewVincent Petry2014-06-031-27/+33
| | | | | - scrolling to next page now correctly renders share icons - reshareing/unsharing a reshare will now still keep "Shared by" label
* More unit tests and fixes for shareVincent Petry2014-06-021-103/+98
|
* Added unit tests for share.js and share iconVincent Petry2014-06-021-9/+13
|
* Update share action text to display owner/recipientsVincent Petry2014-06-021-88/+139
| | | | | - when a share was changed, update the share action text - added file data attribute "data-share-recipients"
* Sharing overview fixes and unit testsVincent Petry2014-05-301-4/+5
| | | | | | | | | | | | - Fixed renaming and fileActionsReady event - Added unit tests for shares list - Fixed public page with defer - Fixed file actions in sharing overview - Fixed sharing counterpart list (10 entries max) - Fixed file path attribute to be used in download action - Fix sharing list headers - OC.Share icons now operate on fileList instance - Fix OC.Share.updateIcon when more than one list in DOM
* Distinguish legacy file actions from regular file actionsVincent Petry2014-05-301-7/+4
| | | | | | | | | | | | | | Legacy file actions are registered by legacy apps through window.FileActions.register(). These actions can only be used by the main file list ("all files") because legacy apps can only deal with a single list / container. New file actions of compatible apps must be registered through OCA.Files.fileActions. These will be used for other lists like the sharing overview. Fixed versions and sharing actions to use OCA.Files.fileActions, which makes them available in the sharing overview list.
* Fixed file actions for sharing viewsVincent Petry2014-05-301-17/+21
| | | | | | | | FileActions can now be clone to be use for separate file list views without having the side-effect of affecting the main file list view. Added "Open" action in sharing overview file lists to redirect to the regular file list when clicking on a folder.
* allow resharing of files with only share permissionsBjoern Schiessle2014-05-261-1/+10
|
* fix share label creationBjoern Schiessle2014-05-231-23/+26
|
* prevent default action when clicking on the share notificationBjoern Schiessle2014-05-231-1/+6
|
* fileList needs be be declared before the if-statementBjoern Schiessle2014-05-221-1/+1
|
* allow admin to disable sharing for specific groups of usersBjoern Schiessle2014-05-221-8/+24
|
* Fixed JS issues in public pageVincent Petry2014-05-201-8/+10
| | | | | - fixed subdir detection when uploading into subdir - add class detection before overriding to avoid JS errors
* Fixed many issues, clean upVincent Petry2014-05-151-5/+8
| | | | | | | | | | | | | | | - fixed upload and storage statistics - fixed infinite scroll to use the correct contain for scroll detection - fixed unit test that sometimes fail for rename case - controls are now sticky again - fixed selection overlay to be aligned with the table - fixed "select all" checkbox that had id conflicts - fixed public page - fixed global actions permissions detection - fix when URL contains an invalid view id - viewer mode now hides the sidebar (ex: text editor) - added unit tests for trashbin - clean up storage info in template (most is retrieved via ajax call now)
* Namespacing for FileList, FileActions and trashbin appVincent Petry2014-05-151-3/+2
| | | | | | | | | | | | | | | | | - FileList is now an instantiable class - FileActions is now in namespace - added App class for trashbin app - moved trashbin overrides into classes extending FileList - replaced many static calls with "this." or "self." to make the classes reusable/extendable - new URL parameter "view" to specify which view is shown, for example "files" or "trashbin" - added OC.Util.History utility class in core for handling history - moved URL handling/routing to OCA.Files.App - popstate will correctly update the current view and notify the view of the URL change so it can update the current dir - added JS unitt tests for the trashbin app - fixed public app to work with the new namespaces
* remove obsolete codeJörn Friedrich Dreyer2014-04-091-5/+0
|
* Files, trashbin, public apps use ajax/JSON for the file listVincent Petry2014-04-021-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Files app: - removed file list template, now rendering list from JSON response - FileList.addFile/addDir is now FileList.add() and takes a JS map with all required arguments instead of having a long number of function arguments - added unit tests for many FileList operations - fixed newfile.php, newfolder.php and rename.php to return the file's full JSON on success - removed obsolete/unused undo code - removed download_url / loading options, now using Files.getDownloadUrl() for that - server side now uses Helper::getFileInfo() to prepare file JSON response - previews are now client-side only Breadcrumbs are now JS only: - Added BreadCrumb class to handle breadcrumb rendering and events - Added unit test for BreadCrumb class - Moved all relevant JS functions to the BreadCrumb class Public page now uses ajax to load the file list: - Added Helper class in sharing app to make it easier to authenticate and retrieve the file's real path - Added ajax/list.php to retrieve the file list - Fixed FileActions and FileList to work with the ajax list Core: - Fixed file picker dialog to use the same list format as files app
* Improve jQuery element selectorMorris Jobke2014-02-201-1/+1
| | | | | see https://github.com/owncloud/core/pull/7012/files#r9337198 http://24ways.org/2011/your-jquery-now-with-less-suck/
* uppercase text and fix dialog popupThomas Müller2014-02-201-4/+4
|
* remove duplicate selectors and declarationThomas Müller2014-02-201-7/+6
|
* update share ownerThomas Müller2014-02-201-0/+8
|
* Fixed various file name escaping issues in core appsVincent Petry2014-01-101-1/+1
| | | | | | | - Refactored file tr lookup into FileList.findFileEl that uses filterAttr to avoid escaping issues in jQuery selectors - Fixed versions and sharing app to properly escape file names in attributes
* Revert "[fix] Center Share Dropdown & Versions Dropdown"zombiehugs2013-12-031-1/+1
| | | | This reverts commit 1dbbfcf3dcd4de7f31344244b9f22217e4bfba72.
* [fix] Center Share Dropdown & Versions Dropdownzombiehugs2013-12-031-1/+1
| | | | Center Share Dropdown & Versions Dropdown
* pass the name of the item source from the browser to the server - no need to ↵Thomas Müller2013-10-231-2/+2
| | | | get the data via complicated db queries
* Fixed sharing status update for new/uploaded filesVincent Petry2013-10-171-3/+11
| | | | | | | | | | | | | | | Creating new files, folders or uploading files now have their sharing icon updated accordingly. For this, the global share status list that is cached in OC.Share.statuses is reused for new files. Performance should improve as the sharing list is now only loaded once per navigation session. In OC.Share, split loadIcons into loadIcons + updateIcons. Fixes #4977
* Ajax calls for "files" and "files_trashbin" appsVincent Petry2013-09-131-1/+1
| | | | | | | | | | | | | Frontend: - The files app list now uses ajax calls to refresh the list. - Added support the browser back button (history API). - Added mask + spinner while loading file list Backend: - Added utility function in core JS for parsing query strings. - Moved file list + breadcrumb template data code to helper functions - Fixed some file paths in trashbin app to be similar to the files app
* Add _many_ newlines at the end of fileskondou2013-08-181-1/+1
|
* fix #2711 using a custom event, also use css selectors over filterAttrJörn Friedrich Dreyer2013-08-081-2/+5
|
* Use HTML5 data attribute + fix undefined variableLukas Reschke2013-01-261-0/+2
|
* missing renames of publicListView to disableSharingThomas Mueller2013-01-231-1/+1
|
* Whitespace cleanupBart Visscher2013-01-161-1/+1
|
* moving sharing email code to coreThomas Mueller2012-12-101-25/+1
|
* restoring feature to send sharing link via emailThomas Mueller2012-12-101-1/+23
|
* Fix shared status iconsMichael Gapczynski2012-10-281-30/+4
|
* don't show the share action in the file view for publically shared files.Björn Schießle2012-10-101-1/+1
|