Commit Graph

2531 Commits

Author SHA1 Message Date
Luke Towers d6f8cc179d Support abort(404) in the backend module 2019-02-21 10:44:58 -06:00
fansaien 8a60d3c19a Fire backend.list.extendRecords event during export useList (#4148)
Provides an opportunity to modify and / or return the $results collection object before the controller exports it. Credit to @fansaien
2019-02-19 17:14:32 -06:00
Luke Towers bbf398133e Fix issues with AJAX handlers on dashboard widgets. Replaces #4132 2019-02-13 15:05:18 -06:00
Luke Towers ac5bc866ff Prevent password from being HTML encoded in the invite email 2019-02-13 14:55:29 -06:00
Luke Towers c55cc622ff Added new Inline (no icons) navigation mode to the branding options 2019-02-13 14:55:03 -06:00
Luke Towers cb87802080 Added support for counter and counterLabel to main menu.
Refs: #16, Refs: 7bcec1bd99, Replaces: #4061
2019-02-13 14:54:13 -06:00
Luke Towers 1fc8dc6fd4 Added ability to require permissions use ReportWidgets 2019-02-11 16:02:30 -06:00
Panagiotis Koursaris bb0a23f54c fixes enable Defaults on repeater (#4129)
Credit to @panakour
2019-02-11 09:54:55 -06:00
Ben Thomson 10d97d515f Use singular byte for '1 byte' filesize (#4130)
Credit to @bennothommo
2019-02-11 09:48:15 -06:00
Mahmut Namli 7077a1cef3 Improved Turkish translation (#4121)
Credit to @mahony0
2019-02-07 09:18:42 -06:00
fansaien 680c729f90 Set the datetime value with time 00:00:00 when using the date mode (#4111)
Credit to @fansaien
2019-02-06 10:23:50 -06:00
Szabó Gergő 6dbe9be615 Improve the Hungarian translation (#4112)
Credit to @gergo75
2019-02-05 16:27:32 -06:00
Ben Thomson 4f3997c6de Make the filesize display in file upload widget more consistent (#4110)
Credit to @bennothommo. Fixes #4085.
2019-02-04 12:54:07 -06:00
Ben Thomson 970d5622c0 Allow datatables to work within a repeater (#4102)
Fixes #4063. Credit to @bennothommo.
2019-02-04 12:50:40 -06:00
Luke Towers 78e68ed632 Support nested jsonable values in List columns, refs: #2990, #2995, #3088, 2019-02-01 15:11:57 -06:00
Antonie Hogewoning 16ca521cd0 Fix setting default values for repeater in update context (#4098)
Credit to @CptMeatball
2019-01-31 13:50:21 -06:00
Denis Denisov 880d614bc5 Fixes bugs with 'collapsed' saved to cookies (#4080)
Credit to @w20k. Fixes #4047
2019-01-23 01:30:53 -06:00
Denis Denisov ec2a0d5fb0 Tabs and tabels scrolling fix (#4069)
Fixes #4037. Credit to @w20k
2019-01-21 23:35:27 -06:00
Farrow 1caaac9704 Added favicon management to back-end customisation (#4045)
Credit to @Farrow. Also accessible with `brand.faviconPath` configuration item.
2019-01-21 23:25:56 -06:00
Luke Towers 920eb15af5 Added support for using the record finder without a model relationship
Added useRelation and modelClass config options
2019-01-18 18:16:16 -06:00
Luke Towers 8c9be817cc Added support for min, max, and step for the number field type 2019-01-18 18:14:25 -06:00
Tobias Kündig 67ee2229a5 Added manual deleted_at checks (#4051)
Fixes #4046 

It is possible that the user model gets fetched using the SoftDelete
trait before the relevant migrations were applied during an update.
To fix this edge case the user model is always fetched using the
withTrashed scope and the deleted_at check is done manually afterwards.

@see https://github.com/octobercms/october/issues/3999
2019-01-18 14:42:25 -06:00
Nathan van der Werf 7232e7a29d Escape output to prevent XSS injection (#4074)
Credit to @nathan-van-der-werf
2019-01-18 10:26:56 -06:00
Luke Towers 3ff77120c6 Improved disabled support for balloon-selector and fileupload fields 2019-01-16 13:32:31 -06:00
Luke Towers cc84c7cf7a Revert back to output() and outputThumb() methods
Adds a default false flag to enable the new behaviour of returning responses instead.
2019-01-16 12:27:07 -06:00
Luke Towers 743c74643a Switched to getHttpResonse() instead of output() 2019-01-15 15:58:45 -06:00
Luke Towers 2fb44fdbee Return backend 404 from files controller 2019-01-15 15:05:57 -06:00
Luke Towers 2758c6711b Added Go to previous page link on the access denied page 2019-01-15 13:53:06 -06:00
Anže Časar 74484b1ec2 Fix default value translation (#4062)
Credit to @acasar
2019-01-15 13:38:22 -06:00
Luke Towers 2d6b9c76a9 Recompile assets 2019-01-15 13:35:12 -06:00
Luke Towers d6e680799f Reduce reliance on CMS module from Backend module
added backend 404 view, fixed return to backend URL in the access denied view on backend only instances
2019-01-15 11:46:48 -06:00
Luke Towers a9a0544ab0 recompiled stylesheets, retaining newlines for improved diff readability 2019-01-14 11:52:16 -06:00
Luke Towers 6c0a77c064 Fix broken tests 2019-01-10 20:49:15 -06:00
Luke Towers 1c0fd1b419 Yet another change to perfect the getParentForm() method 2019-01-10 18:59:29 -06:00
Luke Towers 39987677f0 Peer review of 1b3263d4c7 2019-01-10 17:57:32 -06:00
Luke Towers 5853cc54c4 Ensure that FormWidgets are correctly initialized with previewMode even on AJAX requests 2019-01-10 17:39:41 -06:00
Luke Towers 1b3263d4c7 Pass the containing Form widget to the FormFields that it generates.
This enables complex FormWidgets that need to know what Form widget they belong to to access that information with $this->formField->form; This also enables a fix for: https://github.com/rainlab/location-plugin/issues/48
2019-01-10 10:22:59 -06:00
Luke Towers 064daa2d2e Compiled assets, minor docblock update 2019-01-03 16:26:30 -06:00
fansaien 2dcd84c4f2 Fix the input trigger API where a form element doesn't exist (#4033)
There are no `form` elements in the preview context of a form, so this adds an alternative selector to use when no common `form` elements are found for the Input Trigger API to use. Credit to @fansaien
2019-01-03 16:24:43 -06:00
fansaien d6b1b6e95d Fixed the Delete and Enter not being captured in keydown.oc.richeditor (#4015)
Credit to @fansaien.

The keydown event can not capture the Backspace(Delete) and Enter key event. 

Moved the binding keydown function into froalaEditor.initialized event to solve this issue. Please review this Froala Editor issue: https://github.com/froala/wysiwyg-editor/issues/1879

The editor.events doesn't support off function. So, can not call off function in the unregisterHandlers()
2019-01-03 14:07:29 -06:00
fansaien 5db5522d4d Fix the filter options being escaped twice (#4032)
Credit to @fansaien.

Reference: https://github.com/octobercms/october/pull/3793.  This commit added the e() function for translation results. 

Because the filter is using the mustache template, and the manual said: All variables are HTML escaped by default. If you want to return unescaped HTML, use the triple mustache: {{{name}}} (https://mustache.github.io/mustache.5.html)

That means the string will be escaped twice. So, I removed the e().
2019-01-03 14:04:26 -06:00
Ben Thomson ee003c416c Redirect user to last available page in list widget if current page is unavailable (#4020)
Credit to @bennothommo. Fixes #4008.
2018-12-30 12:49:42 -06:00
Ben Thomson 63dfb7fad3 Replace deprecated prepareModel call in ImportExport behavior 2018-12-30 16:35:17 +08:00
Ben Thomson b6bd643e21 Rename prepareModel to prepareQuery, deprecate prepareModel 2018-12-30 16:25:01 +08:00
Luke Towers 26173486d3 Fix issue where the clear search button would submit a form if the search widget is within an HTML form 2018-12-28 11:51:51 -06:00
Luke Towers 400ce2391e Fix support for the placeholder property in RichEditor FormWidgets 2018-12-27 15:28:10 -06:00
Luke Towers a2708ee0f5 Added backend.manage_default_dashboard permission to lock down who has access to change the default dashboard for the system. Fixes #2176 2018-12-20 17:26:49 -06:00
Luke Towers ed226e0b09 Recompiled hotkey JS 2018-12-20 13:41:32 -06:00
Luke Towers 44ac62abeb Recompiled LESS using new CSS minification 2018-12-20 13:41:09 -06:00
munxar e6f4e13446 Added NestedForm FormWidget (#3977)
Credit to @munxar
2018-12-19 21:54:20 -06:00