Commit Graph
8 Commits
Author SHA1 Message Date
Adam Daley 9fb19e02d7 Improve date/datetime format handling and customisability (#948)
* Replace custom Twig bb_date/bb_datetime filters

Replace bb_date and bb_datetime Twig filters with format_date / format_datetime to better support i18n and customisability.

* Update templates to use format_date/format_datetime

Update all templates to use format_date/format_datetime (where appropriate and where not already used).

* Update locale configuration options

Update configuration options to include new locale settings, and ensure new options are used throughout.

* Add reset button to admin theme date picker

Add a reset button to the admin_default theme date picker to allow dates to be cleared, and fix an issue with Order module not allow blank dates. Resolves #938.
2023-03-24 23:16:07 +00:00
Shamshid e4d7996530 Upgrade jquery to v3 and cleanup related deprecations (#904)
* fix deprecations by using `.on()` method

* replace keyCode event with key

* use jquery v3 from npm

* fix support ticket canned response by replacing select2 lib

* fix `ajaxStart()` method requirement to be document

* remove jquery uniform()

* remove jquery.scrollTo

* finally, remove jquery v1

* remove unused CSS

* move canned_ticket_response style

* fix deprecated `:eq()` selector

* fix jquery.alert by adding package to bring in removed $.browser feat from v1

* fix escape key

* add comment for clarity on the added package

* remove unused css

* remove duplicate jquery-ui css
2023-03-08 08:57:35 +00:00
Yağızhan ff73fc6327 Fixed broken Gravatars for the client ticket page (#875) 2023-02-28 13:13:25 +02:00
Belle Aerni 64d8e2fef6 Replace usage of the bbmd filter
It's just an alias of the `markdown` one, so let's use that one directly and mark this one as deprecated
2023-01-29 15:25:41 -08:00
John @ S4 96e3990083 Add body classes to client html files 2023-01-11 15:26:20 +02:00
Belle Aerni 695d2df3c2 Hotfix for issues caused by the CSRF token system 2022-12-07 14:12:05 -08:00
Belle Aerni 8821d50cff Created a CSRF token system (#526)
* Implement a basic CSRF token system

* Update forms for all modules

* Added to the theme forms

* Create a config option for CSRF prevention

* Slightly rework the filter

* Let's actually use a global var

* Added the token to API hrefs

* Fixup

* Remove old reference

* Added the token to the installer twig globals

* The token isn't actually needed in the installer

* Fix client searching

* Whoops - those need quotes
2022-12-06 18:47:14 +01:00
Belle Aerni edd6f72634 Drop the "BB" prefix 2022-11-28 17:22:50 +03:00