Commit graph

149 commits

Author SHA1 Message Date
Hypolite Petovan
3a18669730 Rename dolike to doActivityItem 2021-01-31 08:39:47 -05:00
Hypolite Petovan
188f7b0eb0 Move GET pinned/{id} to POST item/{id}/pin 2021-01-30 18:42:23 -05:00
Hypolite Petovan
b3b2bc96ba Rename dopin() to doPIn 2021-01-30 18:12:01 -05:00
Hypolite Petovan
46ed610d04 Restore auto-complete feature in comments forms
- New catch-all feature supports network/display pages, infinite scroll and live updated conversations
2020-12-27 20:36:33 -05:00
Hypolite Petovan
481925c353 Fix infinite content ajax call parameters
- Ajax request could end up in a 404 if the page URL didn't have at least a query string parameter
2020-11-02 20:07:26 -05:00
Michael
9870c8584f Improved check for existing data 2020-10-23 20:29:29 +00:00
Michael
d6662d65dd Log messages removed 2020-10-21 12:13:57 +00:00
Michael
1fc36c4470 Only auto update when there is content 2020-10-20 20:43:51 +00:00
Hypolite Petovan
4427876c05 Implement correct behavior for min_id in boundary pagination
- The previous behavior of since_id systematically showed the most recent results
2020-10-13 00:11:39 -04:00
Hypolite Petovan
6968c73ec7 Fix indenting in friendica-tagsinput.js 2020-10-10 19:04:25 -04:00
Michael
99fc97f337 Removing the page number from the infinite scrolling 2020-09-26 21:46:22 +00:00
Michael
dd82f150ca Rework of the network page 2020-08-13 20:07:13 +00:00
Tobias Diekershoff
b219677de5
Merge pull request #8991 from MrPetovan/task/restore-autocomplete-comment
Restore auto-complete in comment boxes beyond the first
2020-08-09 10:56:41 +02:00
Hypolite Petovan
7a5f2437f9 Fix option syntax for textcomplete 2020-08-08 15:19:04 -04:00
Hypolite Petovan
692bb2a895 Restore auto-complete in comment boxes beyond the first 2020-08-08 12:58:56 -04:00
Hypolite Petovan
d7b5674476 Move mod/lockview to Module\PermissionTooltip
- Add explicit type parameter to lockview() in main.js
2020-07-27 01:58:53 -04:00
Hypolite Petovan
08384ecf59 Remove obsolete view/js/jquery-textcomplete folder 2020-07-22 10:48:30 -04:00
Hypolite Petovan
f4afd56fa5 Replace jquery-textcomplete with yuku/old-textcomplete
- Add a jQuery wrapper to minimize code changes
- Improve local autocomplete jQuery plugin to allow chaining
2020-07-22 10:48:02 -04:00
Hypolite Petovan
ad9bac8b07 Prevent propagation of escape key press when it was used to close autocomplete dropdown
- It was causing the modal window to unexpectedly close
2020-06-22 22:25:15 -04:00
Hypolite Petovan
df1c74bd33 Make "like" links one way
- Updated dolike() function to accept a "un-" switch
- [frio] Updated doLikeAction() function to call dolike() instead of having duplicated code
- Added boolean logic (with explanatory truth table) to smartly delete existing activities in Model\Item::performActivity
- Moved verb/activity parameter handling closer to their use in Model\Item::performActivity
- Updated all references to dolike() and doLikeAction() to include the "un-" switch
2020-05-27 08:41:13 -04:00
Hypolite Petovan
2d217129b9 Improve performance of asynchronous like/update
- Make the like module return earlier instead of outputting a full empty HTML page
- Update the force_update variable earlier to prevent spilling on multiple unrelated nav update calls
2020-05-27 08:41:10 -04:00
Hypolite Petovan
7e37378c2a Add page title notification count display 2020-05-26 10:28:53 -04:00
Hypolite Petovan
e0e131b620 Move perfect-scrollbar dependency back to composer.json 2020-05-06 21:49:34 -04:00
Michael
f3bf723cc7 Moved to view/js 2020-05-05 12:42:30 +00:00
Hypolite Petovan
16f48731b1 Remove album name bin2hex conversion in file browser
- Avoids Javascript hex2bin() limitation to Latin-1 string encoding
2020-04-21 22:14:11 -04:00
Hypolite Petovan
682fb7e4e2 Move community module to src/
- Use boundaries pagination instead of number pages
- Trim down community update module output
- Part of https://github.com/friendica/friendica/issues/4090
2020-02-16 04:41:22 -05:00
Hypolite Petovan
0b0309ce8f Remove pager parameter from conversation()
- Add getUrlParameter() Javascript function to determine current page
2020-02-13 23:40:00 -05:00
Michael
cf9070c396 Removed unneeded CSS and JS stuff 2020-02-05 16:30:35 +00:00
nupplaPhil
5a9ec841af
Make Notification bubble work again 2020-01-25 17:25:11 +01:00
Philipp
09de4a5b47
Merge pull request #8156 from MrPetovan/task/7817-custom-fields-part-2
New custom profile fields feature part 2: Feature switcheroo
2020-01-24 20:17:52 +01:00
nupplaPhil
0458b9c2df
rename notify => notification once more :-) 2020-01-24 19:08:03 +01:00
nupplaPhil
b229939c3d
rename CSS attributes notify => notification 2020-01-24 18:56:34 +01:00
nupplaPhil
0f932ae723
Notify => Notification
Notifs => Notifications
2020-01-24 18:32:38 +01:00
Hypolite Petovan
cc007f715d Add sortability to custom profile fields form 2020-01-22 19:42:36 -05:00
nupplaPhil
6c36fd9e01
Move Config::get() to DI::config()->get() 2020-01-19 21:21:13 +01:00
Michael
0a4119adaf @brief is removed completely 2020-01-19 06:05:23 +00:00
Michael
e7a652851e Use only the first part of the path for the local storage 2020-01-14 07:04:42 +00:00
Michael
b83f328983 Remove "f" parameter / network page parameter cleanup 2020-01-13 20:10:13 +00:00
Michael
d9f26aed66 Use local storage 2020-01-12 12:56:44 +00:00
Michael
cfeef7afed We now store the state in a cookie 2020-01-11 08:41:14 +00:00
Hypolite Petovan
d01d69b9e7 Update doignore() in main.js to match new Item\Ignore return type
- Remove superfluous jQuery selectors
2019-11-30 23:16:34 -05:00
Hypolite Petovan
39d0735236 Update linkPreview to allow using a generic selector
- The individual textareas still need an id attribute to be set
2019-11-28 12:54:56 -05:00
Hypolite Petovan
e8f91d7e54 Ensure the preview parameter is set to 1 when doing a preview
- The element #jot-preview might not exist
2019-11-28 12:54:56 -05:00
Hypolite Petovan
b64b18e6f7 Remove obsolete view/js/acl.js
- Remove references to the deleted file
2019-11-28 12:54:56 -05:00
Hypolite Petovan
ae3d4f63a3 Use visibility tags input for the default ACL selector
- Move friendica-tagsinput to default view folder
- Update all references to ACL::getFullSelectorHTML
- Fix theme-specific issues with the new ACL
2019-11-28 12:54:53 -05:00
Michael
cf56992444 We can now pin our own posts 2019-11-07 05:39:15 +00:00
Philipp Holzer
062e472314
Rename route '/ignored/{iid}' to '/item/ignore/{iid}' 2019-10-24 17:18:29 +02:00
Hypolite Petovan
5fcdb5de00 Move duplicated insertFormatting function to main.js
- Add insertBBCodeInTextarea function
- Add BBCode url exception to insertBBCodeInTextarea
2019-10-11 19:59:28 -04:00
Hypolite Petovan
088eb3391e Move urlRegex JS constant to main.js 2019-10-11 19:59:28 -04:00
Hypolite Petovan
8f20e2054b Move /acl module to src/
- Move Core\ACL::contactAutocomplete to Module\Search\Acl
- Rename module path to /search/acl
2019-10-03 22:40:42 -04:00
Hypolite Petovan
4343e0c592
Update autocomplete.js 2019-09-03 15:30:02 -04:00
Hypolite Petovan
3670e7f9c8 Remove unevenly supported lookbehind from link preview regular expression
- Simplify link preview condition
2019-08-29 21:12:53 -04:00
Michael Vogel
3c7f7b45cd
Merge pull request #7565 from MrPetovan/bug/7406-neutralize-enter-in-autocomplete
Prevents Enter from submitting forms in ACL fields
2019-08-26 11:37:38 +02:00
Hypolite Petovan
cba40dc9fd Prevents Enter from submitting the jot form in the ACL search field
- Disable browser autocomplete in jot ACL search field
2019-08-25 21:03:29 -04:00
Hypolite Petovan
082827b67e Remove unused Javascript methods and functions 2019-08-24 13:00:16 -04:00
Hypolite Petovan
895faddf82 Prevents linkPreview to match on URLs lead by an equal sign
- Prevent automatic link preview matching on inserted image BBCode
2019-08-16 23:04:46 -04:00
Hypolite Petovan
c25527cbe8 Replace obsolete #comment-preview-inp field by query string append 2019-07-29 21:58:37 -04:00
Michael
dfee2c467c Use another "img" format to simplify adding of alternative texts 2019-07-29 20:42:42 +00:00
Hypolite Petovan
dc2f1d6bd3 Add global Javascript Element.matches polyfill 2019-06-03 08:30:24 -04:00
BinkaDroid
2dbeae701f
fixing error "json not defined" in frio
when trying to attach video-link to post
2019-04-11 21:37:58 +02:00
Hypolite Petovan
f17a6007e5 Fix confusion when connector checkboxes are disabled for private posts
- Saves connector checkbox state when disabling them
- Restores connector checkbox state when reenabling them
2019-03-24 22:42:03 -04:00
Hypolite Petovan
0a58e4c952 Improve contactgroupChangeMember() javascript function
- Add usage of new /group/123/add|remove/123 URL
- Add checkbox revert in case of error
2019-02-23 17:32:41 -05:00
Hypolite Petovan
ae3bf47019 Improve global open/close functions in main.js 2019-02-14 22:26:18 -05:00
Hypolite Petovan
d7dbc632f8 Improved comment hiding interaction
- Remove global window.showMore and window.showFewer
- Improve global showHideComments function
- Remove frio-specific showHideComments function
2019-02-14 22:24:34 -05:00
rabuzarus
b7573a94ee linkPreview - workaround for mising 's' flag ins js regex 2019-02-13 22:26:56 +01:00
rabuzarus
f6691c138a bugfix: linkPreview - remove s flag from regexp because FF don't support it 2019-02-13 15:14:56 +01:00
Tobias Diekershoff
29fcb2e7ee typo 2019-02-12 13:59:33 +01:00
Tobias Diekershoff
173a17d0e0 tagged the JS files in view/js with their licenses 2019-02-12 11:29:50 +01:00
rabuzarus
b0372e5e93 attachment preview: fix a bug if inserted text did contain a new line between content and url 2019-02-04 01:23:30 +01:00
rabuzarus
ba03ec857a attachment preview: some small corrections 2019-02-03 16:26:13 +01:00
rabuzarus
dcf072e77d attachment preview: handle content with attachment bbcode inside (show preview of this attachment) 2019-02-02 23:06:11 +01:00
rabuzarus
b065356c28 attachment preview: add destroy method to linkPreview.js 2019-02-02 02:27:41 +01:00
rabuzarus
132e0b83c4 attachment preview: mv some js functions from frio to the linkPreview to make linkPreview available for other themes 2019-02-01 23:48:14 +01:00
rabuzarus
a6322b1c4e attachment preview: some backend work in the item module:
- convert attachment to bbcode and
- add the attachment bbcode to the item body
2019-02-01 23:42:36 +01:00
rabuzarus
07d1932efc attachment preview: frontend work (works with frio) 2019-02-01 19:18:08 +01:00
Jonny Tischbein
93d50af700 move live update: update_contacts to update_contact 2018-11-06 22:22:42 +01:00
Hypolite Petovan
14237a9599 Move $pager and $page_offset out of App
- Move infinite scroll data output in a module hook
- Use Pager instead of paginate() and alt_pager()
2018-10-25 00:07:15 -04:00
Jonny Tischbein
d2b5f77be9 Add multimedia link for jot + enables hover text in jot + autosize in when paste link + renaming / Code Standards 2018-10-24 16:20:10 +02:00
Michael Vogel
103535d620
Merge pull request #5773 from MrPetovan/task/rewrite-js-hooks
Rewrite JS hooks
2018-10-01 17:10:30 +00:00
Hypolite Petovan
cc73aec3ba Add postprocess_liveupdate JS event dispatch on post preview 2018-09-20 21:03:23 -04:00
Hypolite Petovan
7dd6fb3b3c Rewrite JS hooks
- Use event listeners instead of homebrew hooks
- Remove view/js/addon-hooks.js and its references
- Update Addon docs
2018-09-19 22:51:51 -04:00
Michael
63b5cb4fc6 Issue 5721: Temporarily deactivate the picture upload from private mails 2018-09-13 15:46:37 +00:00
Hypolite Petovan
4edbea3ed0 Fix JS error when no acl is defined 2018-09-09 09:54:54 -04:00
Michael Vogel
edcd0a3744 Issue 4960: Ignoring and blocking of contacts should work again (#5657)
* Issue 4960: Ignoring and blocking of contacts should work again

* Renamed functions

* This function should be renamed as well.

* We now have a frontend to block and ignore public contacts

* Hide some parts for public contacts

* Removed notices, public contact is now accessible from dirfind as well

* We now show contact conversations and contact posts

* We now use a new conversation mode

* The update functionality is disabled until it will work completely

* Fixing tabs chaos

* Update after posts on the contacts page will now work

* Show connect link
2018-08-25 09:48:00 -04:00
rabuzarus
dd2d680258 Frio: new photos upload template (#5637)
* frio - add missing page template to various photo pages (fix missing background)

* frio - rework photo upload album selection

* frio - rework photo upload button

* frio - fix photo upload button and acl
2018-08-20 00:29:50 -04:00
Hypolite Petovan
b6e57989dc Call asynchronous JS after complete page load 2018-08-14 03:01:36 +02:00
rabuzarus
d0ea208d04 main.js - move some code of liveUpdate() into updateConvItems() for readability 2018-06-16 13:38:32 +02:00
rabuzarus
a2fc1be187 fix scroll position in stream while ajax update 2018-06-16 13:05:33 +02:00
Pascal Deklerck
b54d1b708a Code standards updates 2018-06-13 21:03:19 +02:00
Pascal Deklerck
a11103a3a7 Code organisation and documentation of JS hook code 2018-06-13 09:31:08 +02:00
Pascal Deklerck
ef01dfefd4 Remove console logging 2018-06-07 22:25:39 +02:00
Pascal Deklerck
d488512ca0 5118 Create Javascript hook mechanism 2018-06-07 22:23:30 +02:00
rabuzarus
34204ca580 update javascript cropper library 2018-03-29 17:57:06 +02:00
Hypolite Petovan
84b4ff58b6 Make Hashtag autocomplete case-insensitive 2018-03-29 00:47:27 -04:00
rabuzarus
96c086ea13 hashtag autocomplete 2018-03-16 13:55:26 +01:00
Michael
efb2b58c47 "update_item" is now 0 when not set 2018-02-28 04:58:53 +00:00
Michael
9cf342f02a Improved JS, updating single items now work 2018-02-27 22:37:11 +00:00
Michael
4070ad1815 After a post only the single post is now updated 2018-02-27 21:10:05 +00:00
Hypolite Petovan
cd392db078 Move js/ folder under view/
- Move library/cropper to view/js/cropper
- Move library/jquery-textcomplete to view/js/jquery-textcomplete
2018-01-28 16:17:36 -05:00