Commit Graph

2124 Commits

Author SHA1 Message Date
Samuel Georges 24c8b4368a Various security and UI fixes
The Media Manager now uses a white list approach to blocking files, we have been advised that the blacklist approach is too fragile and we agree.
Asset List and Media Manager now use $.oc.alert when displaying errors
2017-04-09 08:00:56 +10:00
Christophe Vuagniaux 9e74fe6a53 Repeaters Firefox compatibility fixes (#2738)
* Repeaters fix Firefox collapse/expand buttons not working

* Repeaters fix Firefox open new tab when CTRL + click on Expand/Collapse buttons
2017-04-08 20:21:34 +10:00
Samuel Georges 982bc43348 Fixes recordfinder (again)
Lots of complicated stuff going on here, all elements are getting wiped out when a record is updated and the control is getting disposed at the same time. We've created a dedicated variable to store the datalocker name as a string, this represents a small memory leak but a necessary one it seems.
Fixes #2798
2017-04-07 07:48:04 +10:00
Samuel Georges 5daf4365ae Move the change event to the input element
This should bubble to the parent control element and persist any logic that depends on the old event
Fixes #2684
2017-04-06 08:08:50 +10:00
Samuel Georges 328a74c1ff Fixes JS error in recordfinder
It looks like the inheritance of the foundation library has caused a logic error
Refs #2756
Recompile assets
2017-04-06 07:51:04 +10:00
Alwin Drenth dbd9af3ba0 Update Dutch language for build v409 2017-04-01 15:43:14 +02:00
Luke Towers d1c9b1a6f1 Support updating existing sidemenus
Fixes #2757, #2777
2017-03-24 09:05:35 -06:00
Samuel Georges 330a41f39c Improve form controller docs 2017-03-23 08:48:26 +11:00
Samuel Georges f8e7fa03e0 Refactor remove option implementation
Refs #2756

Add disabled support
Fixes #1199
2017-03-22 09:26:05 +11:00
Samuel Georges e8f6cb4dc5 Merge pull request #2756 from ChVuagniaux/RecordFinder-Remove-button
RecordFinder - add a remove button
2017-03-22 09:06:27 +11:00
Samuel Georges a40357cec9 Added a check for missing dependencies in two places
- System dashboard now lists missing dependencies
- Installing a plugin with missing dependencies will also attempt to install those dependencies at the same time
Fixes #36
2017-03-21 17:42:56 +11:00
juysoft be7490c878 Update _recordfinder_form hard coded button "Cancel" text 2017-03-18 23:54:24 +02:00
Samuel Georges 6697e00649 Backend::URL -> Backend::url 2017-03-16 17:16:03 +11:00
Samuel Georges 0a981a25f7 API docs progress
Controller -> SystemController for consistency
2017-03-16 17:08:20 +11:00
Samuel Georges 51ac144049 Moves CMS components to directory where they belong
Improve inline docs
2017-03-16 07:00:39 +11:00
Samuel Georges b841f9e066 {@inheritDoc} -> @inheritDoc 2017-03-16 06:26:14 +11:00
Christophe Vuagniaux 91d39d275c RecordFinder - add a remove button 2017-03-15 12:33:02 +01:00
Samuel Georges 18c6bb63a2 API docs progress 2017-03-15 18:03:26 +11:00
Samuel Georges ec18697ae2 Cannot use Cms\Classes\Controller as Controller because the name is already in use
Remove test code
2017-03-14 19:42:37 +11:00
Samuel Georges e54cf7133b Improve some inline docs in preparation for API docs 2017-03-14 19:36:17 +11:00
Samuel Georges 5f91c45f79 Implement disabled support for some form widgets
Recompile assets
Fixes #2749 (Media Finder)
Fixes #2750 (File upload)
Fixes #2751 (Rich Editor)
Refs #2724
2017-03-14 13:52:47 +11:00
Samuel Georges e7fa4b832a Rollback 84b533454e
See #2749, #2750 & #2751 on notes for how to better handle this. Put simply, the control of disabled VS previewMode should be given to the individual form widget, as opposed to the spawning parent.
2017-03-14 06:49:33 +11:00
Luke Towers 3876dc61d1 Rollback c836d92f9f
Rollback due to discussion on c836d92f9f. Will be looked into again later when addressing #2311.
2017-03-13 09:36:49 -06:00
Luke Towers 84b533454e Allow FormWidgets to be disabled like regular FormFields
Adds support for the `disabled` property to FormWidgets so that they will match the behaviour present in regular FormFields. Fixes #2724 and a personal annoyance of mine :)
2017-03-11 02:12:47 -06:00
Samuel Georges d642605f87 Remove old fix and spruce up code 2017-03-04 15:23:12 +11:00
Samuel Georges 380a71d7b9 IE11 will not honor height 100% when overflow is used on the Y axis
Fixes #2672
2017-03-04 14:55:19 +11:00
Samuel Georges bc161b94f7 Menu items are supposed to be counted in 100s
Plugin authors may need to adjust their menu items from this.
2017-03-03 08:07:13 +11:00
Szabó Gergő 8cfc10280a Update Hungarian translation 2017-03-02 13:52:01 +01:00
Samuel Georges e9cc782120 Peer review #2723 2017-03-01 14:31:37 +11:00
Luke Towers 3aa251db4e Client side enforcement of repeater maxitems
Adds client side enforcement of the max items property of the repeater form widget
2017-02-28 20:43:08 -06:00
Luke Towers 5c56c9579d Add support for maxItems to the Repeater FormWidget
Refs: #2710
2017-02-28 20:36:32 -06:00
Samuel Georges 023f2ac0f5 Push add/remove events to JS
Refs #2710 /cc @LukeTowers
2017-03-01 12:40:15 +11:00
Vladimir Kattsov c73e0ea811 Unhardcoded lang string in active theme widget, add russian translation 2017-02-25 12:05:08 +03:00
Luke Towers c836d92f9f Make number field an HTML5 number field
Makes the `number` form field actually be an HTML5 `type="number"` field.
2017-02-15 08:44:12 -06:00
Samuel Georges d9a2b88852 Pass records by reference to overcome halting event issue
Refs https://github.com/octobercms/october/pull/1853
2017-02-15 05:58:44 +11:00
Luke Towers 9f3c2b8bf6 Switched backend.list.extendRecords event triggering
Made the event triggering for the new backend.list.extendRecords event triggering more consistent with the rest of the class.
2017-02-14 02:20:23 -06:00
Luke Towers fd3fbf5e52 Merge pull request #1853 from leocavalcante/feature-list-extend-records
Make available to extends Lists records
2017-02-14 02:17:16 -06:00
Samuel Georges 8ffc744dc0 Merge branch 'develop' of github.com:octobercms/october into develop 2017-02-08 19:11:57 +11:00
Samuel Georges 13471b4178 Bump froala_editor to v2.4.2 2017-02-08 19:10:24 +11:00
octolit 43391688be Lithuanian translation for system/lang (#2648)
* Lithuanian translation for system/lang

* Lithuanian backend translation for cms/lang

* Lithuanian backend translation

Final and complete translation for backend/lang for Lithuanian. Also
added locale option in modules/backend/models/Preference.php for
back-end users to be able to select new locale -> Lietuvių (Lithuanian)

* reset_error translated
2017-02-07 14:56:06 -06:00
Samuel Georges 462c9cd4e8 Introduce theme logging + log settings
CmsObject changes can now be tracked (disabled by default)
Request logging is now disabled by default (security vector)
2017-02-08 05:44:04 +11:00
Samuel Georges 4ade0d4952 Minor styling tweak /cc @LukeTowers 2017-02-08 05:44:04 +11:00
Mattias Hamberg 1d31fe3baa Updated swedish language file 2017-02-03 06:40:28 +11:00
Samuel Georges 0d1fc43212 Add isSelected() helper to form field
Fixes an issue where dropdown NULL and 0 are treated as the same
Fixes #2612
2017-02-03 06:35:23 +11:00
Samuel Georges 3365aee129 Halcyon models don't support relations
Use a simple fill() approach instead of trying to set nested fields via their relations
Refs https://github.com/rainlab/translate-plugin/issues/216
2017-02-03 06:00:52 +11:00
Luke Towers 749835f73d Merge pull request #2642 from norotaro/patch-1
Update RelationController::onRelationManageUpdate
2017-02-01 15:07:46 -06:00
Samuel Georges 4d4bad4f75 Setup => Installation - Fixes #2569 2017-02-02 07:07:52 +11:00
Samuel Georges bf17fa44e6 Merge pull request #2610 from lukaszbanas-extremecoding/issue_2609
Support deferred binding for single view modes in RelationController
2017-02-02 06:46:09 +11:00
norotaro 2ac4dad4e9 Update RelationController::onRelationManageUpdate
As in `onRelationManageCreate()`, `onRelationManageDelete()`, `onRelationManageAdd()`, etc, it needs to return `$this->relationRefresh()` for `relationExtendRefreshResults()` to be executed
2017-02-01 12:14:41 -03:00
Luke Towers 13aef49ebb Respect custom sort_order column value
Adds support to the ReorderController behavior for custom `sort_order` column names.
2017-01-30 19:05:16 -06:00