338 Commits

Author SHA1 Message Date
Yuriy Bakhtin
5746fb0996
Refresh obsolete nonce value on Live drivers (#7312)
* Fix obsolete nonce value on Live Push driver

* Auto refresh a page with violated script-src because of obsolete nonce

* Auto refresh a page with violated script-src because of obsolete nonce

---------

Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
2024-11-25 21:44:59 +00:00
Lucas Bartholemy
8b010e8280 Merge branch 'master' into develop 2024-11-07 18:38:02 +01:00
Yuriy Bakhtin
4ee69a1740
Don't remove html tags by JS from search post record because it is done by PHP (#7278) 2024-10-29 14:52:32 +01:00
Yuriy Bakhtin
c108fb3857
Upgrade jQuery Highlight plugin (#7248)
* Upgrade jQuery Highlight plugin

* Autocommit PHP CS Fixer
2024-10-11 10:20:13 +00:00
Lucas Bartholemy
fd1103c2f3 Merge branch 'master' into develop 2024-08-28 16:53:43 +02:00
Yuriy Bakhtin
f426f94a3b
Fix search starting with special characters (#7189) 2024-08-28 11:08:59 +02:00
Yuriy Bakhtin
122a26c6d2
Fix initialization of several select2 inputs on the same page (#7182) 2024-08-23 10:47:14 +02:00
Yuriy Bakhtin
fccecb0fe5
Highlight only words with 3 or more characters (#7178) 2024-08-20 15:37:26 +02:00
Lucas Bartholemy
c004785fda Merge branch 'master' into develop 2024-08-04 09:34:18 +02:00
Yuriy Bakhtin
f497f14825
Remove js statement with to avoid error on build assets by grunt uglify (#7150) 2024-08-02 10:38:51 +02:00
Yuriy Bakhtin
9097b9a476
Fix meta searching twice for the same keyword (#7145) 2024-07-31 19:02:40 +02:00
Gevorg Mansuryan
b5529d19e9
Enh/client export confirm unload (#7139)
* Export `confirmUnload` function from `humhub.client.js`

* Wiki - Make Space icon optional

* Export `confirmUnload` function from `humhub.client.js`

* Export `confirmUnload` function from `humhub.client.js`

* Export `confirmUnload` function from `humhub.client.js`

* Update CHANGELOG.md

---------

Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
2024-07-30 13:23:19 +00:00
Marc Farré
15a23d6ce6
Chg #7136: When opening a modal box, don't autofocus automatically on… (#7137)
* Chg #7136: When opening a modal box, don't autofocus automatically on the first form input

* Add MIGRATE info

* Fix BasePicker focus
2024-07-24 15:06:25 +00:00
Yuriy Bakhtin
70fefe9c27
Allow color boxes in picker (#7094)
* Allow color boxes in picker

* Display color box for select2 options if it is provided

* Update CHANGELOG.md

* Update data color attribute name for content tag selector
2024-06-28 13:38:15 +02:00
Yuriy Bakhtin
c6b6414454
Implement new field template radio pills (#7060) 2024-06-11 18:06:19 +00:00
Yuriy Bakhtin
84a8044fbe
Fix meta search panel position (#7046) 2024-06-03 19:19:36 +00:00
Yuriy Bakhtin
7415609bd3
Improve content search (#7028)
* Improve content search

* Fix search with short word

* Improve URL highlighting on content search

* Test for mysql keyword search
2024-05-27 09:35:44 +00:00
Yuriy Bakhtin
0a97d4f68e
Content Search: use AND operator by default and don't apply mask for phrases (#6979)
* Content Search: use AND operator by default and don't apply mask for phrases

* Fix test

* Fix SearchQueryTest

* Fix creating of FULLTEXT index for mysql 8+

* Fix mysql search driver for short words

* Improve keyword highlighting

* Use fixed value instead of `mysql.ft_min_word_len`

* Exclude highlighting on console request

* Escape special char `@` on mysql search driver

* Escape special chars on mysql search driver

* Escape char `/` on mysql search driver

* Escape quote chars on mysql search driver

* Improve word highlighting with quote or apostrophe

* Add code comment for search query and driver

* Refactor search query

* Fix test for ZendLucence Driver

* Fix ZendLucence Driver for phrases

---------

Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
2024-05-21 17:20:02 +00:00
Marc Farré
d5342e4f7e
When a JS file has module.initOnAjaxLoad = true, if the initOnAjaxUrl… (#6996)
* When a JS file has module.initOnAjaxLoad = true, if the initOnAjaxUrls contains multiple params in the URL, the init function is not triggered

* Added Issue ID
2024-05-07 13:58:18 +00:00
Yuriy Bakhtin
735718aded
Meta search: Highlight keyword in single content view (#6971)
* Meta search: Highlight keyword in single content view

* Meta search: Highlight keyword in single content view

---------

Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
2024-05-01 20:49:54 +00:00
Yuriy Bakhtin
a3072f9f74
Fix people dropdown filter without defined keys (#6965)
* Fix people dropdown filter without defined keys

* Validate options of profile select field

* Fix wrong options of the profile fields "Select List" and "Checkbox List"

* Fix profile list field tests
2024-04-24 16:25:31 +00:00
Yuriy Bakhtin
1e50f6f978
Fix search out of viewport on mobile (#6954) 2024-04-19 13:57:58 +00:00
Yuriy Bakhtin
619191f871
Enhancing of meta search for advanced search providers (#6920)
* Enhancing of meta search for advanced search providers

* Sort meta search providers

* Update meta search cache key for same provider with different params

* Update meta searching

* Update CHANGELOG_DEV.md

* Update meta search

* Refactor meta search for external providers with unique route
2024-04-15 13:54:12 +00:00
Yuriy Bakhtin
6724475ef3
Allow module initializing on ajax loading (#6563)
* Allow module initializing on each loading

* Allow module initializing on ajax loading

* Remove URL params when checking ajax source and allow multiple URLs

* Restrict to URLs including the r param for non pretty urls

* Removed initOnAjaxLoad and allow initOnAjaxUrls to be a string

* Re-added initOnAjaxLoad and added usage doc

---------

Co-authored-by: Marc Farré <contact@marc.fun>
Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
2024-04-04 14:52:36 +00:00
Yuriy Bakhtin
8580cffa4c
Refactor meta search classes (#6911) 2024-04-02 13:11:10 +00:00
Yuriy Bakhtin
4c67823259
Meta search: Hide provider on error from server side (#6903) 2024-03-26 21:41:37 +00:00
Yuriy Bakhtin
88a959684f
Fix initialization of js module ui.navigation (#6902) 2024-03-26 15:09:49 +00:00
Yuriy Bakhtin
5217197061 Set meta search panel width to 400px 2024-03-25 16:23:16 +01:00
Yuriy Bakhtin
ed4e833807 Fix meta search with spaces in keyword 2024-03-19 09:29:36 +01:00
Yuriy Bakhtin
97b4893fe0 Meta search: use post content for record title 2024-03-18 14:02:05 +01:00
Yuriy Bakhtin
6920445828 Meta Search: Fix on empty keyword 2024-03-12 17:26:22 +01:00
Yuriy Bakhtin
95f2dc051a Meta search: Improve focus switching by keys arrow up/down 2024-03-11 18:22:54 +01:00
Yuriy Bakhtin
6f90999141 Meta search: Allow typing a search keyword when first result is autofocused 2024-03-11 10:19:37 +01:00
Yuriy Bakhtin
2378a1cc76 Meta search: autofocus first result 2024-03-07 16:32:55 +01:00
Lucas Bartholemy
2e1877e4a0 Merge branch 'develop' into enh/search 2024-03-07 15:14:20 +01:00
Yuriy Bakhtin
a371d9642e Meta search: Update styles 2024-03-07 15:05:49 +01:00
Yuriy Bakhtin
97868df274 Reset search form after PJAX request 2024-03-06 18:50:50 +01:00
Yuriy Bakhtin
3b80a830f3 Display a search loader immediately before run a search process 2024-03-06 11:29:49 +01:00
Yuriy Bakhtin
64b5bfc475 Improve meta searching 2024-03-05 11:47:22 +01:00
Yuriy Bakhtin
aeac9286a5 Meta search: Intelligent TypeAhead searching 2024-03-01 12:32:05 +01:00
Yuriy Bakhtin
ba2f112b31 Meta search: fix position 2024-03-01 11:44:36 +01:00
Yuriy Bakhtin
17188276e2 Meta search updates 2024-02-29 10:49:18 +01:00
Yuriy Bakhtin
be5bdc420b Meta search from external form 2024-02-27 18:40:45 +01:00
Yuriy Bakhtin
783d791b49 Meta search from external form 2024-02-27 15:09:11 +01:00
Yuriy Bakhtin
36365887c1 Meta search from external form 2024-02-27 12:13:14 +01:00
Yuriy Bakhtin
b4055f7089 Meta search from external form 2024-02-26 18:46:59 +01:00
Marc Farré
a5aaa654ce
If a top menu entry opens a modal box, don't mark it as active when clicked (#6863)
* If a top menu entry opens a modal box, don't mark it as active when clicked

* Added PR ID
2024-02-24 19:24:06 +00:00
Yuriy Bakhtin
831fd9b9ce Meta search from external form 2024-02-23 18:11:00 +01:00
Yuriy Bakhtin
39342c967a Improve meta search window size on small screen 2024-02-22 14:52:57 +01:00
Yuriy Bakhtin
90bc8b34dd Meta Search: Improve auto height 2024-02-20 18:30:47 +01:00