4036 Commits

Author SHA1 Message Date
CSNWEB
ee2dd7ac1c Add readOnly / disabled support for checkboxlist
Relations rendered with the relation formwidget using checkboxlist are now correctly rendered like in the previewMode.
2017-04-07 21:04:20 +02:00
amdad
5aea608e77 Prevent preloading files in advance
Files should be loaded on user click. Huge amount of data is loaded on page load, especially if many audio instances are on page. This is temporary solution. Ultimately widget should support params to match html5 audio/video tags.
2017-04-07 10:27:36 +02: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
v1.0.412
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
v1.0.411
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
asbig
91c9d0cd17 Fixes icon styling in FireFox and Windows environment
line-height from .status-icon to .status-icon > i. (#2776) In /modules/system/assets/ui/less/chart.less.
2017-04-05 23:19:31 +10:00
Samuel Georges
b858ff680e Fixes required: false being treated as true
Fixes #2712
2017-04-05 22:24:00 +10:00
Samuel Georges
9f809becca Fixes a bug when saving a modified template
When template has been modified outside of the CMS (mtime mismatch).
Fixes #2690
2017-04-05 22:07:15 +10:00
Samuel Georges
08e7fa4296 Adds a helper for fetching the plugin object
This is useful when you need to "boot" or "register" certain areas of the plugin itself, eg:

    $plugin = $this->getPluginObject();
    $plugin->registerSubscriptionEvents();

Calling boot() or register() may work too but not always, sometimes there can be things you don't want registered. Hence why it doesn't occur automatically.
2017-04-05 08:23:39 +10:00
Samuel Georges
68f515ba0e Exception handling when no core updates exist
Fixes #2793
v1.0.410
2017-04-03 08:18:12 +10:00
Luke Towers
9475505369 Merge pull request #2791 from adrenth/release/dutch-409
Update Dutch language for build v409
2017-04-01 16:33:10 -06:00
Alwin Drenth
dbd9af3ba0 Update Dutch language for build v409 2017-04-01 15:43:14 +02:00
Samuel Georges
d472a0b0a8 Core updates now support !!! (important)
There have been some small internal API changes that have been causing grief for some users. While all updates are technically "safe", user workarounds and custom implementations can never be predicted with certainty. This change will allow us to say with confidence, either

- Yep, no worries this is a safe update. Relax. Versus;
- Might want to watch this one, just in case.
v1.0.409
2017-04-01 12:07:24 +11:00
Samuel Georges
8aa9d25a91 Broadcast combined assets as static
Follow on from 329a275f102e3a06d504bcd2dd0ac82af5fdf9e8
Fixes #2474 (again)
2017-03-31 13:02:16 +11:00
Samuel Georges
fe13d8a1d1 Convert purgeable attributes to class properties
This fixes #2779 where developers might enter custom values in the pluginDetails() method
2017-03-31 10:03:02 +11:00
Luke Towers
ab4ce4d8c8 Merge pull request #2784 from acasar/patch-2
Fix translatable URL caching
v1.0.408
2017-03-29 10:50:02 -06:00
Anže Časar
e0ce714285 Fix translatable URL caching
The same fix as https://github.com/rainlab/pages-plugin/pull/244 but for CMS pages.
2017-03-28 17:52:42 +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
26b4a64854 Fixes unit test
Throwing a guarded / mass assign exception
2017-03-22 07:47:11 +11:00
Samuel Georges
ef1f8a76d8 Minor naming convention change 2017-03-22 07:33:35 +11:00
Samuel Georges
b32176682f Add validation model test
Refs #2676
2017-03-22 07:31:38 +11:00
Daniel-Bruni Ziermann
2b3a0caaee German Translation (#2767)
* German Translation

The correct value for 'de' is 'Deutsch'
2017-03-21 11:15:26 -06: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
v1.0.407
2017-03-21 17:42:56 +11:00
Samuel Georges
c7eb965af8 Introduce ignorePatterns to Media Library, ignoring dot files by default
Roll back some changes from #2692
2017-03-20 17:42:17 +11:00
Samuel Georges
31ba5e29bd Introduce Resources component for testing
This should be considered experimental at this stage, however this component is used in every October website we've built thus far, it makes sense for it to be included in the core. Once tested we will look at documenting it with an accompanying screencast video.
2017-03-20 17:32:20 +11:00
Luke Towers
1ad5a58ae8 Merge pull request #2764 from angelside/develop
Update _recordfinder_form hard coded button "Cancel" text
2017-03-19 13:25:05 -06:00
Samuel Georges
b447b8e056 Merge pull request #2692 from ctf0/regex-hide
use regex to hide files under media manger
2017-03-19 19:28:40 +11:00
Samuel Georges
b6fedfb688 Specify explicit form element
This allows request elements external to the form to serialize a target form for use. An example might be a search form at the top of a page, list of results in the middle, then the pagination at the bottom. The pagination would need to target the search form with data-request-form to persist the search query value.

This should work with the JS API too, passed as an object, because $($()) is acceptable in jQuery
v1.0.406
2017-03-19 13:54:21 +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
v1.0.405
2017-03-16 17:08:20 +11:00
Luke Towers
0df8f55450 Translate component properties' validationMessages
Fixes #2755
2017-03-15 16:56:22 -06:00
Samuel Georges
5e1feb5870 Fixes unit tests
Further to previous commit moved Cms\Classes\ViewBag to components directory
2017-03-16 07:26:57 +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 84b533454e1c803887adaea88ef2c7d611062d31
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.
v1.0.404
2017-03-14 06:49:33 +11:00
Luke Towers
3876dc61d1 Rollback c836d92f9f04f66f8e0e1b4d9ba8af83fed3e439
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
Luke Towers
03fc5cb78e Merge pull request #2742 from firemankurt/master
Allows Settings to be defined in YAML
2017-03-10 14:37:02 -06:00
Kurt Jensen
0710418df7 Converted all indents to spaces
Converted all indents to spaces
2017-03-10 12:08:42 -08:00
Kurt Jensen
c6d3780d10 Allows Settings to be defined in YAML
Allow settings array to be defined in the plugin.yaml file instead of just in php file.
2017-03-09 21:33:35 -08:00
Samuel Georges
d642605f87 Remove old fix and spruce up code 2017-03-04 15:23:12 +11:00