Commit Graph

3893 Commits

Author SHA1 Message Date
Samuel Georges 7e76f39e6c Add app.name config
Various other refittings
2017-05-16 18:50:41 +10:00
Samuel Georges 0e4d05d150 Add migrations to queue database tables 2017-05-16 18:49:05 +10:00
Samuel Georges 4d1bec860d thumbnailDirectory -> thumbFolder 2017-05-16 08:47:15 +10:00
Samuel Georges d9cf7381dc Implement helper method for checking ignored path
Refs #2858
2017-05-16 07:38:38 +10:00
Samuel Georges 2a0a91486c Logic error - fixes #2654 2017-05-16 07:24:07 +10:00
Samuel Georges 5ca3c3fa35 Merge pull request #2859 from TimFoerster/patch-2
Allows 0 and ‘0’ values as default values for theme settings
2017-05-15 20:31:59 +10:00
Samuel Georges f05f4c21cf Merge pull request #2858 from TimFoerster/patch-1
Filter layout by ignored file names
2017-05-15 20:29:53 +10:00
Luke Towers a5b081b74b Make the MediaManager messages more generic 2017-05-15 00:16:28 -06:00
Luke Towers 21d4f683c3 Support custom thumbnail directory
This enables support for edge cases that require custom thumbnail directories (such as requiring authentication to view generated thumbnails).
2017-05-14 22:41:31 -06:00
Luke Towers 7a820f3c43 Remove reference to hardcoded media path
Replaces the reference to a hardcoded `/media` path when generating a local temp file path to utilize the folder name as set in `cms.storage.media.folder`.
2017-05-14 22:28:08 -06:00
Luke Towers 0f04afbea4 Recompile mediamanager assets to include the fix 2017-05-14 19:34:50 -06:00
Luke Towers 84ee4f2679 Fix for #2765
Actual changes are in `MediaManager.prototype.deleteConfirmation`, apologies for the trailing whitespace removals, my editor auto does that and I didn't feel like removing it since there shouldn't really be trailing whitespace anyways.

Fixes #2675 (and probably other potential oopsies) by skipping over the "return to parent" item in the deletion handling method. The "return to parent" item contains a reference to the folder above the current folder, which could potentially cause the entire media folder to be deleted; and would certainly remove a lot more than actually intended.
2017-05-14 19:32:57 -06:00
Samuel Georges 57aa723c23 filterExtendScopes -> listFilterExtendScopes
extendFilterScopes -> extendListFilterScopes
Filter still belongs to the "List", this would help resolve conflicts if there were ever a FilterController that would carry rightful claim to "filterExtendScopes"
2017-05-14 14:47:17 +10:00
CSNWEB fe3e44efeb Add method to easily extend filter scopes (#2866)
* Add method to easily extend filter scopes
* Add non static method for filter scope extension
2017-05-13 17:31:09 -06:00
Samuel Georges 453e48924e Apply web middleware group for the good cookies 2017-05-13 22:18:13 +10:00
Samuel Georges 8a95fec188 Refit october:down 2017-05-13 20:43:44 +10:00
Samuel Georges 6b74efa4b0 Improves the DebugExtension
It now uses the HtmlDumper from Illuminate to elaborate on each variable when clicked
getName() no longer needed on Twig extensions
2017-05-13 10:20:18 +10:00
Samuel Georges 2b5709adb9 Bump Twig to v2, refit code 2017-05-13 09:34:20 +10:00
Samuel Georges 59d1e7736c Bump min version to PHP 7
Restore tinker command
2017-05-13 09:04:22 +10:00
Luke Towers 95cd3f7077 Translate group name and description
Refs: https://github.com/octobercms/october/issues/2772#issuecomment-301125572
2017-05-12 11:22:13 -06:00
Samuel Georges 8d658ea7eb Remove as per upgrade guide
ControllerServiceProvider is no more
2017-05-12 07:20:10 +10:00
Samuel Georges 165d50d971 Changed the logic to use the container binding event
Validator is now deferred so this won't be available early
2017-05-12 07:19:45 +10:00
Samuel Georges 5ea79489af pluck -> value
This is an odd one from Laravel, pluck is now value and lists is now pluck. We'll need a release note about this one.
2017-05-12 07:19:06 +10:00
Nauris Linde 2a5f9e5ce2 Update Latvian locales translation (#2862) 2017-05-09 19:01:04 -06:00
Luke Towers 85934654f1 Adding Lithuanian to the available languages
Refs: #2648
2017-05-09 01:17:06 -06:00
Tim Förster 25daf546fa Allows 0 and ‘0’ values as default values for theme settings - Refs #2388 2017-05-05 11:20:10 +02:00
TimFoerster 5eb278e883 Filter layout by ignored file names
The Layouts get filtered by the filesystem definition of ignored files.
#814
2017-05-04 14:53:19 +02:00
Samuel Georges 52367d0b06 Merge pull request #2849 from gergo85/develop
Improve translations
2017-05-03 20:08:57 +10:00
Szabó Gergő 841220c873 Escaped translations 2017-04-28 16:07:20 +02:00
Samuel Georges 349851dd11 Partials, pages and content now support drag'n'drop 2017-04-28 23:37:50 +10:00
Szabó Gergő a57e0e3080 Replace the str_replace function 2017-04-28 14:20:16 +02:00
Samuel Georges 1723070444 Merge pull request #2801 from amdad/patch-1
Prevent preloading files in advance
2017-04-28 19:30:25 +10:00
Szabó Gergő 58dfaf395e Improve translations 2017-04-28 09:01:21 +02:00
Luke Towers 68e874dc97 AssetMaker Improvements (#2847)
* Check if asset file exists before symbolizing path

Adds a check to see if the asset file exists before attempting to symbolize it, this will allow the asset combiner to be passed assets with complete paths instead of only relative paths.

* Implement combiner business logic

* Improve handling of bad inputs
2017-04-27 00:17:05 -06:00
Maria Vilaró 3a2b9b1973 Improvements to Spanish translation (#2843) 2017-04-26 10:48:26 -06:00
Samuel Georges 6a6378a24d Strip indexes from repeater data sets 2017-04-26 08:10:45 +10:00
Quezler cc17b679f1 Code dusting (#2826)
Code cleaning according to PSR-2 w/ exemptions (mostly dust).
2017-04-24 21:38:19 +10:00
Samuel Georges cb56c61e36 Retain true backward compatibility with early repeater 2017-04-24 19:06:59 +10:00
Samuel Georges d7ef8cdcf8 Minor logic change 2017-04-24 13:24:57 +10:00
Samuel Georges 6825ce12c8 Allow external group field definition - Refs #2772 2017-04-24 13:24:57 +10:00
Samuel Georges c52f91a6d2 Collapsed items should default to or include the group name - Refs #2772 2017-04-24 13:24:56 +10:00
Samuel Georges dac744dbc6 Scrollpad not rendering on open - Refs #2772 2017-04-24 13:24:56 +10:00
Samuel Georges acfe619cb9 Add button lacks loading state - Refs #2772 2017-04-24 13:24:55 +10:00
Luke Towers 0fa0301557 Merge pull request #2803 from CSNWEB/patch-5
Add readonly / disabled support for checkboxlist (relation form widget)
2017-04-22 10:23:52 -06:00
Samuel Georges ac7da4634a Implement working prototype of a grouped repeater
Refs #2772
2017-04-22 22:01:17 +10:00
Samuel Georges 83e80745b3 Fixes issue with index incrementation 2017-04-22 21:40:35 +10:00
Samuel Georges 46fcdbc636 Progress on repeater field groups
Refs #2772
2017-04-22 21:04:37 +10:00
Samuel Georges eaf2c9e4d0 Make the content selector more explicit (contentFrom) 2017-04-22 15:31:27 +10:00
Samuel Georges 49f5ec7557 Document and improve popover 2017-04-22 15:25:23 +10:00
Samuel Georges 4644218312 Move autocomplete to Storm UI
Rename select AJAX from "source" to "handler" (Refs #2836)
Document select handler usage
Recompile assets
2017-04-22 11:44:27 +10:00
Jim Cottrell 376a3b59e2 Add AJAX option to custom select functionality 2017-04-21 15:46:03 -06:00
Luke Towers 248af140bb Merge pull request #2835 from interworks-morr/fix_backend_sidenav_layout
Fixing case-sensitive issue with Backend Sidenav Layout - Issue #2834
2017-04-21 13:42:00 -06:00
interworks-morr 46d8ac8972 Fixing case-sensitive issue with Html 2017-04-20 11:47:11 -05:00
Szabó Gergő 130d502f41 Update the Hungarian translation 2017-04-19 10:35:58 +02:00
Szabó Gergő 83b8f48b6f Translate the "by" word 2017-04-19 10:35:22 +02:00
Samuel Georges 96d0ce1c20 Add mergeConfig helper, useful for extension
Refs 8575ece07d
2017-04-17 09:55:50 +10:00
Samuel Georges 27062ddfa0 Fixes folder creation and rename in asset list 2017-04-14 08:07:11 +10:00
Samuel Georges 9df40c07b8 Move extension validation to files only 2017-04-13 09:37:49 +10:00
José Longo e13fba6068 add missed js language file in /modules/system/assets/js/lang 2017-04-11 14:37:22 +01:00
Luke Towers a64260c2ff Merge pull request #2808 from jlongo/master
Added support/files for pt_pt language
2017-04-11 01:58:52 -06:00
Samuel Georges 015b34fe88 Block media manager entirely if user lacks access 2017-04-11 08:40:39 +10:00
José Longo 0de1306427 add locale pt-pt in $localeOptions 2017-04-10 15:08:50 +01:00
José Longo 9511698fcf add in system dir/files for pt-pt language 2017-04-10 15:07:27 +01:00
José Longo 228bdb3f35 add cms dir/file for pt-pt language 2017-04-10 15:06:00 +01:00
José Longo 4f3287822b Add dir/file for pt_pt language 2017-04-10 15:04:58 +01:00
Samuel Georges 433cf1d504 Additional security fixes 2017-04-10 16:02:05 +10:00
CSNWEB 3cfb8c7587 DRY up the code 2017-04-09 04:01:34 +02:00
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
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
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
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 68f515ba0e Exception handling when no core updates exist
Fixes #2793
2017-04-03 08:18:12 +10: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.
2017-04-01 12:07:24 +11:00
Samuel Georges 8aa9d25a91 Broadcast combined assets as static
Follow on from 329a275f10
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
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
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
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
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
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 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
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
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
Samuel Georges 03959fa087 Minor fix to casing 2017-02-28 17:25:44 +11:00
Samuel Georges b59dd77c12 Prefer to keep this language key unique
Just in case we decide to call it something else on the dashboard
Revert #2709 (aec4591410)
2017-02-28 17:19:06 +11:00
Vladimir Kattsov aec4591410 👌 Remove unnecessary lang string 2017-02-27 11:08:23 +03:00
Vladimir Kattsov c73e0ea811 Unhardcoded lang string in active theme widget, add russian translation 2017-02-25 12:05:08 +03:00
Samuel Georges 39dc4503b2 Fixes typo - refs #2696 2017-02-23 08:04:20 +11:00
Samuel Georges c704ddcdf0 md5 is faster than crc32 in PHP apparently
Reference https://3v4l.org/2MAUr
2017-02-23 07:40:04 +11:00
Muah bcd75c84c0 use regex to hide files under media manger 2017-02-20 13:54:30 +02:00
Panagiotis Koursaris 7a308f1f71 Greek Language Update 2017-02-19 14:38:31 +02:00
Muah f505f3577f Add helper info for the util command 2017-02-19 13:31:32 +11:00
Samuel Georges 5aa351f67c System files should return fully qualified path
- Not sure how this was not fixed sooner, since there is no easy way to obtain a full qualified URL from a system file.
- If a CDN is used this method will return a URL.
- The asset combiner returns a FQ URL as well, although it didn't always, perhaps this is a relic from that time that was never retrofitted.
2017-02-18 12:23:31 +11:00
Luke Towers cdc8b23fd4 Fixing same-origin AJAX requests
jQuery sends multiple values for the `X-REQUESTED-WITH` header if it has already been set, even when the value is the same. This means that same-origin requests would send `X-REQUESTED-WITH: XMLHttpRequest, XMLHttpRequest` which isn't detected as AJAX by Laravel/Symphony.

To fix this issue while retaining the crossDomain usage of framework.js, I've used `crossDomain: false` to trick jQuery into sending the header anyways on cross-origin requests. This is still changeable by the user in the `ajaxSetup` event.
2017-02-15 09:56:43 -06:00
Luke Towers 178ac8f76b Merge pull request #2680 from filipac/patch-3
Messed up fields comment order
2017-02-15 08:54:07 -06: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
Filip Iulian Pacurar 2cfa9f0613 Messed up fields comment order 2017-02-15 14:21:01 +02:00
Samuel Georges a4b3d2dd3b Demo theme patch can be removed now
This causes the unit tests to fail on some systems
2017-02-15 20:50:52 +11:00
Luke Towers c4031de6d6 X-Requested-With to uppercase
Style change because headers are case insensitive
2017-02-14 17:53:43 -06:00
Luke Towers 88d53ec0d5 Support CORS requests via framework.js
Adds support for Cross-Origin requests made via framework.js by manually adding the `X-Requested-With: XMLHttpRequest` header required for server-side detection of AJAX requests that is sent on normal Same-Origin AJAX requests but stripped by default by jQuery when making Cross-Origin requests. Note: Request target server still needs to have `Access-Control` headers configured correctly to return a request.
2017-02-14 17:46:56 -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
Samuel Georges 09085c5e03 Add explanation - Refs #2674 2017-02-15 05:51:30 +11:00
Luke Towers 4bb0f216f9 Merge pull request #2674 from tschallacka/IIS-getrealpath-fix
Fix for get realPath on IIS.
2017-02-14 12:31:40 -06:00
tschallacka 65247c4ce2 Fix for get realPath on IIS.
Sometimes getRealPath is empty when requested on IIS and needs to be rebuilt manually.
2017-02-14 09:22:34 +01: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 d85a6901fe Typo 2017-02-13 08:29:34 +11:00
Sevdin Filiz a99715ff2a Update modules/system/lang/en/lang.php (#2670)
Correcting mixed up system log setting comment values
2017-02-11 15:38:51 -06:00
Sevdin Filiz 880b770ad3 Add 'logging' language variable for logging setting tab. (#2669)
"defaultTab: Logging" definition is hard coded. Changing it to pull from "system::lang.log.default_tab"
2017-02-11 15:26:01 -06:00
Luke Towers 9a2a981cdf Merge pull request #2668 from angelside/master
Update modules/system/lang/en/lang.php
2017-02-11 13:09:15 -06:00
Sevdin Filiz 4b3c43c676 Update modules/system/lang/en/lang.php
For Turkish language we use "Türkçe", not "Türk". "Türk" is a person (adjective), "Türkçe" is a language name.

Example:

- We speak Türkçe.
- I am a Türk.
2017-02-11 16:14:04 +02: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 cc1a67373c Add title to template list
Makes it easier to read longer template descriptions
2017-02-08 05:44:04 +11:00
Samuel Georges 4ade0d4952 Minor styling tweak /cc @LukeTowers 2017-02-08 05:44:04 +11:00
Ioannis Lazaridis a5ae9c7148 Update greek translations 2017-02-07 13:07:34 +01:00
Samuel Georges b7617d4166 Merge pull request #2656 from gpasztor87/patch-2
Typo
2017-02-07 07:41:12 +11:00
Luke Towers 37a735c8ed Process JS API requests through the document
Process JS API requests ($.request(handler, options)) through the document object instead of a non-existent form element. The form element was originally added because the framework only supported requests made from within a form
```
[22:08:12] spunky:	The $triggerEl was implemented because previously it was just $form
[22:08:24] spunky: For data-requests without a form, these events were being ignored
[22:08:31] spunky:	So as a workaround I implemented $triggerEl
```
As this is no longer the case, any JS API requests will now be made through the document element instead to support listening to events (such as ajaxSetup) even when there is no real attached element to trigger them on.
2017-02-06 10:36:57 -06:00
Pásztor Gábor 8beadb1ecc Typo 2017-02-05 21:43:14 +01:00
Samuel Georges f7e80b2cb6 Added a $force flag to bootAll and registerAll method for unit tests
Fixes #2592
2017-02-05 07:09:27 +11:00
Samuel Georges d2082e0ea0 Throw an error when framework loads twice
Fixes #2379
2017-02-05 06:49:11 +11:00
Samuel Georges 562f60730f Fix bug in handleConfirmMessage override 2017-02-04 20:15:13 +11:00
Samuel Georges 6cd76e9c6d Add handleValidationMessage override function 2017-02-04 20:03:45 +11:00
Samuel Georges 88ed5c2c64 Dedicated ajaxSetup event for modifying option
Allow overriding confirm message with handleConfirmMessage function
2017-02-04 19:44:53 +11:00
Samuel Georges 7bcc31eef8 Add handleRedirectResponse override function 2017-02-04 19:14:26 +11:00
Samuel Georges e323a1b98a Added handleFlashMessage function to framework.js
- Used for handling flash messages via JS API

Request options are now passed to ajaxBeforeSend & ajaxPromise events

Improved framework extras
- Fixes data-request-flash when used within a plain form, this code would fail because $triggerEl is set to a plain form:
`<form><button data-request="..." data-request-flash>...</button></form>`
2017-02-04 15:42:43 +11:00
Samuel Georges 08c5a27e50 Peer review 2be18764d4 2017-02-04 09:21:45 +11:00
Luke Towers 2be18764d4 Support passing objects as the loading indicator
Adds support for passing objects to be used as the loading indicator. Note: Objects must support `.show()` and `.hide()` methods.
Example:
```js
$.request('onHandler', {
    loading: $.oc.stripeLoadIndicator
});
```
2017-02-03 15:54:59 -06:00
Samuel Georges ebed3cde5e Add afterUpdate event to match keyup
Recompile assets
Refs #2336
2017-02-03 06:50:38 +11:00
Samuel Georges 3bc87fb945 Merge pull request #2336 from rounce/master
input: on paste
2017-02-03 06:47:21 +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
Samuel Georges b2301a8056 Add new config cms.forceBytecodeInvalidation
Refs #2385
2017-01-31 07:23:58 +11:00
Luke Towers 8caf3c5d02 Merge pull request #2638 from gabsource/translation-fr
Update the french translation
2017-01-30 09:38:28 -06:00
Jérémy Gaulin 09ffbac2ce New translation keys for french 2017-01-30 15:38:03 +04:00
Szabó Gergő dda656e50f Minor typo 2017-01-30 10:08:09 +01:00
Szabó Gergő ebd476e00f Update the Hungarian translate 2017-01-30 10:07:55 +01:00
Samuel Georges 8b71385481 Removed "before" events
There is no use case for them (yet)
Refs #2628
2017-01-30 08:33:32 +11:00
Samuel Georges 15209a9575 Bring events in to line with dev guide
Proof class
Refs #2628
2017-01-30 08:25:43 +11:00
Samuel Georges 0f00c3a5f3 Merge pull request #2628 from Klaasie/feature/media-manager-events
Add events to Media Manager widget
2017-01-30 08:03:06 +11:00
Samuel Georges e2a5d54393 Revise #2426 - Rename preview to previewImage
This is an exotic feature so don't include in the form fields
2017-01-29 09:13:01 +11:00
Luke Towers 8545c9cdab Merge pull request #2365 from shellus/master
improve zh-cn lang coverage
2017-01-28 16:10:41 -06:00
Samuel Georges 8b2be062e5 Merge pull request #2426 from gergo85/develop
Set the path of theme preview image manually
2017-01-29 09:07:52 +11:00
Luke Towers a3b98944be Fix typo in RelationController (original #2460)
Fixes minor typo initially proposed in #2460, resubmitted here as original author vanished.
2017-01-28 15:47:25 -06:00
Samuel Georges e7609aa5e8 Improvements to repeater collapsing
Removed the expand all, collapse all buttons, they are a bit too bulky so have been replaced with the standard CTRL+click behavior.
Added foundation library to repeater.js
Add "titleFrom" option to specify which input to use for the collapsed title
Styling improvements

Refs #2632 + #2631
2017-01-28 11:59:28 +11:00
Christophe Vuagniaux 4dbe172a43 Repeaters add Expand Collapse buttons see #2631 2017-01-28 11:03:49 +11:00
Samuel Georges 63c0aa5384 Merge pull request #2625 from vannut/patch-1
Update /cms/en/lang.php
2017-01-28 11:00:27 +11:00
Samuel Georges 96fcb7fd79 Minor tidy 2017-01-28 07:43:24 +11:00
Aleksey Bobkov 761b03ef16 Merge branch 'develop' of github.com:octobercms/october into develop 2017-01-25 20:16:23 -08:00
Aleksey Bobkov 0d30931045 Minor styling fixes in the table widget. Fixed a bug where empty values in the table widget could be rendered as 'undefined' in Safari. 2017-01-25 20:15:12 -08:00
Samuel Georges 5b5e23bfb8 Minor touch up from #2604 2017-01-26 11:30:26 +11:00
Samuel Georges 5e729f9978 Merge pull request #2604 from dubcanada/patch-1
If CMS module is loaded (and MediaManager exists) bind it
2017-01-26 11:27:56 +11:00
Samuel Georges 56ad25ec6f Remove code deprecations for 2017
Recompile assets
2017-01-26 11:26:53 +11:00
Samuel Georges 513a75c87e Remove data-title from table data
This was utilized by an older responsive table implementation, no longer in use
2017-01-26 11:00:23 +11:00
Klaas Poortinga 7cfb7da7d0 Add events to Media Manager widget 2017-01-24 21:20:14 +01:00
vannut 6dc5a9c48b Update lang.php 2017-01-23 23:56:14 +01:00
Samuel Georges 0251d1dd83 Merge pull request #2601 from GinoPane/develop
Belarusian Localization
2017-01-24 08:17:47 +11:00
Samuel Georges 60c322cf46 Add note from #2620 2017-01-21 11:30:19 +11:00
Luke Towers 8fcc80b9e1 Support nested components
This adds proper support for nested components by saving the value of the existing component context and restoring it after rendering the desired component. Fixes octobercms/october#2619
2017-01-20 14:34:48 -06:00
Samuel Georges 22bc5fce68 Bust OP cache for CMS template cache files
Fixes #2385
2017-01-20 07:20:08 +11:00
Samuel Georges f67c38b303 Spacing adjustments 2017-01-14 06:02:07 +11:00
lbanas b6683c2329 issue 2609 2017-01-13 09:59:11 +01:00
Aleksey Bobkov e35429cf28 Merge branch 'develop' of github.com:octobercms/october into develop 2017-01-12 20:13:50 -08:00
Aleksey Bobkov 6e54433bc1 Implemented page sorting by title, URL and file name in the CMS back-end. Closes #84 2017-01-12 20:13:32 -08:00
Aleksey Bobkov 5415e64cf3 Added an option to suppress folders in the MediaLibrary::listFolderContents() calls. Fixes #2016 2017-01-12 17:40:08 -08:00
Alexander Guth 7894284409 Add afterUpdate event (#2574)
Add afterUpdate event
2017-01-13 08:02:41 +11:00
Samuel Georges 6b56476f66 Merge pull request #2469 from joseph-d/patch-1
Update Filter.php
2017-01-13 06:29:54 +11:00
Samuel Georges 1a267b8d03 Code clean up from #2562 2017-01-13 06:15:59 +11:00
Samuel Georges 17d0d5dc6b Merge pull request #2562 from sw-double/feature/tables-config
Respect database tables config.
2017-01-13 06:08:27 +11:00
Aleksey Bobkov 4b3ab44bab Use minified JavaScript for the Media Manager 2017-01-11 20:13:03 -08:00
Aleksey Bobkov e3d864e0f7 Fixes item selection on touch laptops in the Media Manager. Fixes #2490 2017-01-11 20:00:23 -08:00
dubcanada 0a4390b4d9 If CMS module is loaded (and MediaManager exists) bind it
I am using OctoberCMS without the CMS module (removed from modules directory and turned off in cms.php) and I am getting an error in the backend regarding missing `MediaManager` class. I wrapped this in a class_exists to check that MediaManager exists before binding it.

Let me know your thoughts.
2017-01-10 13:45:59 -04:00
Konstantin L 2b5cf64ddf Use Config::get() instead of config() helper. 2017-01-10 15:51:26 +01:00
Sergey Karavay 22d09e50db Add Belarusian translated language files into backend, cms and system modules.
All lines translated.
2017-01-10 08:06:28 +00:00
Sergey Karavay 024ec54051 Merge remote-tracking branch 'upstream/develop' into develop 2017-01-09 20:07:41 +00:00
Samuel Georges 54160d069d Merge pull request #2597 from LukeTowers/patch-10
[bugFix] RelationController manage[title] not respected in Create contexts
2017-01-10 06:08:51 +11:00
Samuel Georges f9c659343b Further styling improvements
Refs #2575
2017-01-09 08:37:36 +11:00
Samuel Georges 62d7ff9532 Merge pull request #2575 from triasrahman/develop
Enhance usability of list pagination.
2017-01-09 07:51:01 +11:00
Samuel Georges 5caf40c4ad Merge pull request #2593 from gpasztor87/patch-1
Fix backendPreferences live update script.
2017-01-09 06:28:30 +11:00
Samuel Georges 5f4945af7c Merge pull request #2586 from octoberfa/master
Update Persian Language
2017-01-08 11:37:57 +11:00
Samuel Georges f9a8d02172 Merge pull request #2577 from gpasztor87/develop
Style fixes on report container and plugin details page.
2017-01-08 11:20:38 +11:00
Samuel Georges 7e7e9720d2 Merge pull request #2582 from tschallacka/ukraine-fix
Unescaped quote fix
2017-01-08 10:31:57 +11:00
Marvin 6bdd1c2d9c Improve French translation (#2581)
* Fix french translation for login

* Translated new keys for french locales

* Changed french form translation to something more gender neutral
2017-01-08 10:30:43 +11:00
Samuel Georges 0162e99747 Minor fixes #2580 2017-01-08 10:26:06 +11:00
Samuel Georges c9bb4d396e Merge pull request #2573 from sw-double/feature/datepicker-year-range
Support yearRange property for datepicker form field
2017-01-07 12:10:49 +11:00
Luke Towers 83474c96eb Make the changes to the _manage_form.htm partial to support custom titles on manage forms in Create contexts 2017-01-06 18:01:33 -06:00
Luke Towers 102831ecc2 Improve RelationController evalManageTitle()
Improves the evalManageTitle() method of the RelationController by making it possible to detect being the create manage form, which will enable us to utilize the results of the evalManageTitle in the manage_form partial.
2017-01-06 17:45:58 -06:00
Pásztor Gábor bb5b20ed94 Fix backendPreferences live update script. 2017-01-05 18:42:03 +01:00
Sajjad 3d3a788076 Update Persian Language 2016-12-30 18:14:53 +03:30
Tschallacka 1c1082fdcd Also missing closing bracket fix 2016-12-27 23:09:08 +01:00
Tschallacka c97b68e531 Unescaped quote fix 2016-12-27 23:00:31 +01:00
Sergey Karavay fe4d593519 Add Belarusian language into preferences, fix translations of languages for all locales.
Notes:
Translations for all languages in preferences' drop-down should be written in native language not depending from current locale. As for example, you can take Youtube language settings at the bottom of the screen. And user can choose a language he can actually read.
As all localisation strings go to "en" as a fallback, we can just remove locale translations from all localization files except "en"".
2016-12-23 10:12:56 +00:00
Pásztor Gábor 4172889c33 Fix image sizes in plugin details page. 2016-12-21 20:53:48 +01:00
Pásztor Gábor 039a49979a Style improvements on reportcontainer's manage widget dropdown. 2016-12-21 20:15:07 +01:00
Trias Nur Rahman 897c875fa9 Enhance usability of list pagination. 2016-12-21 21:50:44 +07:00
Konstantin L 15cea23308 Support yearRange property for datepicker field. 2016-12-20 20:21:02 +01:00
Samuel Georges 38b6c51381 Merge pull request #2566 from sw-double/feature/fix-ru-lang
Fix ru lang for backend users
2016-12-17 10:16:38 +11:00
Samuel Georges 6af6ebe733 Added config backendForceSecure used to force HTTPS
Refs https://security.googleblog.com/2016/09/moving-towards-more-secure-web.html
2016-12-17 10:16:02 +11:00
Konstantin L d077801ab8 Fix ru lang for backend users. 2016-12-16 18:45:47 +01:00
Konstantin L f10de2fc10 Respect database tables config. 2016-12-15 20:57:17 +01:00
Samuel Georges c644f8b66d Fixes issue where nested columns forcibly hide
Eg: "myrelation[attribute]" as a column name would cause the list setup to hide these fields with no ability to bring them back
2016-12-14 19:14:41 +11:00
Meysam 9ab9c87e6a Fix typo 2016-12-10 06:33:21 +03:30
Vojta Svoboda a7f2e48a44 Translate ‘plugin not found’ phrase (#2538) 2016-12-10 13:24:26 +11:00
Samuel Georges b85c4f9b7b Improve list tree styling and minor fix
Fixes bug with non standard primary key on model when using tree mode
Fixes #2532
Recompile assets
2016-12-10 13:19:32 +11:00
Samuel Georges e8ba7fef5b Plugin dependency definitions no longer case sensitive
Dependency checking is disabled for the front end to increase performance
2016-12-10 10:59:45 +11:00
Samuel Georges 0a2b343047 Simplify system events
This pipes all event calls through a new EventEmitter trait, which substitutes the October Rain event emitter trait. The view event has been moved to this trait also.
Pass some variables by reference to allow multi-extension.
Fixes #2420
2016-12-10 09:02:06 +11:00
Samuel Georges 1bdedb5584 Add renderPartial event to match renderContent
Fixes #2519
Fixes #2533
2016-12-09 08:15:32 +11:00
Samuel Georges 4b79531499 Merge pull request #2531 from jBOKA/patch-1
Updated validation message for string.min and string.max
2016-12-08 07:59:13 +11:00
Pásztor Gábor 94ab13cd8b Fix exception message, remove some unneded imports. 2016-12-07 21:33:05 +01:00
Samuel Georges 78c64cf4a8 Minor revision to style fix
Refs #2542
2016-12-08 01:59:19 +11:00
Pásztor Gábor 8de7891bcc Style fix on secondary tabs. 2016-12-07 15:41:59 +01:00
Samuel Georges 8724566849 Implement support for twig macro/import
Fixes #2526
2016-12-07 20:58:25 +11:00
Samuel Georges 04d54089f8 Merge pull request #2527 from gergo85/patch-2
Change the codeeditor language to html on the Mail template page
2016-12-06 07:55:07 +11:00
Samuel Georges afa2c83c3c Fixes bug introduced by #2507
The many-to-many relationship types choke pretty hard on this enhancement, so only use it for the simple one-to-many/one-to-one style relations instead.
Fixes #2524
2016-12-04 10:48:22 +11:00
Samuel Georges fad4d52e79 Merge pull request #2515 from LukeTowers/patch-9
Respect whitespace on disabled codeeditors
2016-12-03 08:13:17 +11:00
Samuel Georges 7f38d9b6b3 Merge pull request #2537 from gpasztor87/patch-2
Style fix in popover.
2016-12-03 08:12:24 +11:00
Pásztor Gábor 98dc55f5ab Style fix in popover. 2016-12-02 21:56:59 +01:00
Samuel Georges 4fa40d342e Allow export to disable first row as header 2016-12-03 07:36:39 +11:00
jBOKA b046c5ca2e Updated validation message for string.min and string.max
The Validation message results in "Filename of :attribute must not be longer than :max characters" for type string.
2016-12-01 17:05:54 +01:00
Szabó Gergő 1ef2e6cfb7 Change the codeeditor language to html 2016-11-30 15:50:44 +01:00
Samuel Georges c31d3a9a96 Merge pull request #2513 from gpasztor87/patch-1
Using flexbox on login and reset page.
2016-11-30 07:17:18 +11:00
Samuel Georges f771887ee5 When refreshing fields, forceFill is a bit too flaky
- Using a proxy field would populate a relation with an array of attributes, this is not good or consistent. Instead the FormModelSaver trait is used to bring the behavior in line with FormController and others. This should improve consistency in the behavior and developer expectations.

- The noticeable difference will be that relations and their values are now set by the postback data where possible. In cases where this is undesirable -- eg: updating a relation triggers proxy fields to update with existing values, when they should seed from the relation instead (desire to lose prior changes) -- the formExtendRefreshData controller override can be used to prune the existing values from the dataset, where they will then be seeded from the model as normal.

- Also the $data property is only rebuilt if it differs from the model. Previously it would corrupt the model-based dataset by converting to an array then back to an object. If the two objects are the same, they will be passed by reference and values will replicate this way.
2016-11-30 07:08:12 +11:00
Samuel Georges 85ca7715f2 Add Backend::date shorthand helper 2016-11-30 06:59:50 +11:00
Luke Towers 33c2d1c3bb Respect whitespace on disabled codeeditors
This wraps the contents of a disabled codeeditor field in an `pre` element so that the browser renders it respecting the formatting / whitespace of the contents (code in this widgets case) instead of squishing it all down.
2016-11-28 15:35:00 -06:00
Samuel Georges b39ebec812 Pass columns to search scope
This allows the default search to be applied and combined with any custom constraints
2016-11-29 06:46:52 +11:00
Samuel Georges 6679aa6557 Increase default flash message interval
The data-validate-error container does not necessarily need to reside inside a form, but give it priority if it does.
2016-11-28 20:48:05 +11:00
Samuel Georges f1d746abab Merge pull request #2507 from oliverpool/patch-1
Use the otherKey to update a relation
2016-11-28 08:45:40 +11:00
Samuel Georges 29040b416c Allow redirect: false on importExportController
Implement getFieldName() method
2016-11-28 07:50:06 +11:00
Pásztor Gábor fc5af0de8f Fix on mobile view. 2016-11-27 20:48:24 +01:00
Pásztor Gábor 87a68f7bf7 Using flexbox on login and reset page. 2016-11-27 16:29:38 +01:00
oliverpool 01193511d5 Use the otherKey to update a relation
If the `otherKey` of the relationship was set, the widget was considering the wrong column name.
2016-11-24 13:33:20 +01:00
Samuel Georges 35296c5b26 Adds getFieldName helper to FormWidgetBase
Refs https://github.com/octobercms/docs/pull/207
2016-11-24 08:59:07 +11:00
Samuel Georges 329a275f10 Prevent code eval on cached assets
When the request tells the server that the asset is cached, there is no point firing up the combiner, computing the contents and affecting performance. This change should result in a nice boost in secondary page load times.

Thanks to @zerkms for pointing this out

Fixes #2474
2016-11-23 08:42:47 +11:00
Samuel Georges 6bbf496ab2 Simplify code
This makes xdebug happy
Refs #2502
2016-11-23 08:11:24 +11:00
Samuel Georges 07ef1bdf2b Last checkbox/radio in last form group
Makes it look good
2016-11-23 07:53:10 +11:00
kaserv 4025b4885b fix for array fields validation in client-side framework 2016-11-22 17:04:41 +04:00
Samuel Georges b885ca0d24 Adds nowrap class & recompile less 2016-11-22 06:56:03 +11:00
Samuel Georges 97b0bc481f Merge pull request #2496 from LukeTowers/patch-7
Pass current model to RelationController view & manage scopes
2016-11-18 08:21:50 +11:00
Samuel Georges 0a8f169cc3 Improvements to framework extras
- Form validation
- Button loader
- Flash messages
2016-11-18 07:41:02 +11:00
Samuel Georges 10326c2d63 Framework supports passing a "flash" option
This will request the Flash contents, if they are available. It also clears the flash bag contents, which is why this is an optional feature.
Introduced "ajaxValidation" event for capturing all invalid fields at once
2016-11-18 07:39:54 +11:00
Pásztor Gábor cf1fda7437 Allow combine scss files from command. 2016-11-16 20:09:46 +01:00
Luke Towers 05ab8bdb01 Pass current model to RelationController view & manage scopes
This improves the extensibility of the relation controller by passing the parent relation model to the query scope that will be applied to both the view and manage options. It allows the use of attributes of the parent relation model in the query scope applied to the relation.

This is a mirror of october/octobercms#2419, except for the relation controller instead of the record finder widget. If necessary, I can create a case in the test plugin, but if this is simple enough with the added reference to the prior PR to not require a case in the test plugin, that would be simpler for me :) 

@daftspunk, let me know what you think.
2016-11-16 12:05:44 -06:00
Samuel Georges 1a41f632bc Merge pull request #2477 from zerkms/USER_FILTER_SUPERUSER_BOOLEAN
[!!!] Fix for postgresql: you cannot compare a boolean column with integers
2016-11-16 07:14:56 +11:00
Ivan Kurnosov c9ba4c49e6 Fix for postgresql: you cannot compare a boolean column with integers 2016-11-15 16:55:23 +13:00
Samuel Georges 5c5ffb7950 Merge pull request #2483 from henrydinhh/master
Add Vietnamese Map
2016-11-15 07:48:21 +11:00
Samuel Georges f4f7355bf2 A nested tab plugin's tabs are leaking in to the parent tab plugin.
Fixes #2481
2016-11-14 08:46:32 +11:00
Henry Dinh 4c34b798ce Add Vietnamese Map 2016-11-12 21:02:32 +07:00
Samuel Georges a2a0b207c6 Expose isCodeViewActive API function
Recompile JS
2016-11-12 14:12:48 +11:00
Szabó Gergő 74cf5da83b Extend the licence file name list
Some plugin use the LICENSE.md file name instead of LICENCE.md.
2016-11-11 09:56:46 +01:00
Szabó Gergő d1268c9905 Translate the Page link popup (#2467)
* Translate the Page link popup

* Remove the unnecessary dot

* Update the import/export Hungarian translation

* Update the Froala Hungarian translation
2016-11-10 07:39:29 +11:00
Samuel Georges be3bf61a3b Merge pull request #2470 from acrontum/develop
Update DE Lang File
2016-11-10 07:36:05 +11:00
Samuel Georges a313d4eb5b Minor fixes 2016-11-10 06:49:45 +11:00
Michael Brode dc3c2efe6a Update DE Lang File 2016-11-09 08:36:04 +01:00
joseph-d af7950b9d0 Update Filter.php
There is an addScopes function for extensibility but no way to remove scopes which are already there.
2016-11-08 09:46:27 +00:00
Samuel Georges bda625fe58 Remove dependency for NIH method
Refs #2454
2016-11-08 08:21:29 +11:00
Samuel Georges c32c001c20 Merge pull request #2454 from zerkms/MIRROR_RELATIVE
Added `--relative` option to the `october:mirror` command
2016-11-08 07:48:58 +11:00
Samuel Georges 46c473e2f2 Fixes fetching multi tiered pivot relation values
Refs https://github.com/daftspunk/oc-crm-plugin/issues/3
Minor code clean on select.js
2016-11-08 07:02:31 +11:00
Samuel Georges 4aca2d40ff Remove "allowClear" and tidy up #2459
Allow clear is not necessary, equivalent of allowClear false is "placeholder" and allowClear true is "emptyOption".
2016-11-07 08:43:52 +11:00
Joseba Juániz 1ee0250441 Dropdown can support either placeholder / emptyOption
The difference between a placeholder and an emptyOption is that the placeholder cannot be reselected,whereas the emptyOption can.
Fixes #2450
2016-11-07 08:29:49 +11:00
Samuell1 b320632eb4 Fixes taglist working inside a repeater
Fixes #2254
2016-11-07 08:08:48 +11:00
Samuel Georges 6985139d44 Merge pull request #2463 from gpasztor87/line-chart-doc
Added line chart documentation
2016-11-07 08:06:38 +11:00
Pásztor Gábor 4685ea98c2 Added line chart documentation 2016-11-06 21:56:18 +01:00
Pásztor Gábor 98315b0f72 JS fixes and typo 2016-11-06 17:14:12 +01:00
Samuel Georges 50d3ffb035 Halycon models do not declare forceFill
Only bind purgeable fallback event once (only needed once)
Refs https://github.com/rainlab/translate-plugin/issues/54#issuecomment-256067096
2016-11-05 10:59:53 +11:00
Samuel Georges 7b0f33e9b3 Adds an isNested flag to Form widget
This is useful when a form renders another form inside, specifically the repeater. In these cases the model and data will diverge, and it also provides an opportunity to not apply extension logic to nested form fields.
Fixes #2257
2016-11-05 09:53:23 +11:00
Ivan Kurnosov b1ff9f78ba Added `--relative` option to the `october:mirror` command 2016-11-04 10:29:46 +13:00
Samuel Georges 348dd85338 Merge pull request #2446 from justin-lau/fix-import-file-path-order
Fixing default import template doesn't extract columns from the latest uploaded file.
2016-11-03 07:10:16 +11:00
Samuel Georges 6173ff177b Typo in variable name 2016-11-02 08:58:07 +11:00
Samuel Georges 0aadcc6675 Merge paths and vars when calling widget handler
When an AJAX handler is called for a widget, the view paths and specified variables should be merged in to the controller. This sets the appropriate context:

1) Look at the widget first
2) Fall back to the controller

Fixes #2432
2016-11-02 08:50:15 +11:00
Samuel Georges ced920e5d2 Exception handling
Addresses issue specified in https://github.com/daftspunk/oc-test-plugin/issues/21
2016-11-02 07:21:04 +11:00
Samuel Georges bc165078de Removes redundant code
The form widget label and widgetDetails() method was intended for use by the Builder plugin, since it ended up using its own internal registration system, this is not used anywhere so is removed.

Refs https://github.com/octobercms/docs/issues/200
2016-11-01 08:15:03 +11:00
Samuel Georges 57b10704ce Support for overriding list views
For consistency, entry partial for controller behaviors should be called "container"
Added addViewPath() method to ViewMaker
Remove "fa" from icon docs (not necessary)
Fixes #2439
2016-10-29 14:10:21 +11:00
Samuel Georges 788f109361 Use transactions when saving form models
This is a good idea in general to protect the data integrity. There may be some edge cases where transactions are undesirable, if/when we find one, a configuration option should be created to disable this behavior.
Fixes #2431
2016-10-29 11:28:39 +11:00
Samuel Georges 55848e400c Empty CMS section when only manage_themes permission granted
Fixes #2425
2016-10-29 10:23:50 +11:00
Justin Lau 844d2d1b28 Use `id` instead of `updated_at` for more consistent behavior 2016-10-27 00:31:44 +08:00
Samuel Georges 359461d93e Styling fix to the welcome widget
Add unit test for constraining by pivot data
2016-10-25 07:33:24 +11:00
Justin Lau 325ae4ad08 Return the latest uploaded (updated) file path. 2016-10-25 00:21:18 +08:00
Samuel Georges ee2dd78b3d Exception handling for type: relation
It would appear many plugins incorrectly use type: relation as a list column, when this does nothing. Previously it would fallback to the text type, now that invalid types fail hard, this adds a softer landing by spamming the trace log instead.
Refs #2438
2016-10-22 04:18:28 +11:00
Samuel Georges 91e7e8b950 List column number type was falling back to text
Since custom list column types an exception is thrown for unknowns. This makes number known.
Fixes #2438
2016-10-22 03:10:50 +11:00
Samuel Georges f9dd5b2f57 Plugins can now define custom list column types 2016-10-21 07:15:08 +11:00
Samuel Georges 88196fb660 Allow passing an explicit format to datepicker
Refs #1919
Recompile assets
2016-10-20 08:44:14 +11:00
Samuel Georges 535dc78db1 Pass model as 3rd arg in relation extend overrides
Refs #2308
2016-10-19 08:45:43 +11:00
Samuel Georges f74d95392f Fix instances where defineProperties returns nothing
addPurgeableAttribute -> addPurgeable
2016-10-19 07:21:09 +11:00
Samuel Georges a449c05809 FormModelSaver now purges fields beginning with underscore
This is to align with the native model's fill() behavior, of which this classes' behavior is derived.
Fixes #2422
2016-10-18 08:57:57 +11:00
Szabó Gergő 78d7436460 Set the path of theme preview image manually 2016-10-17 13:51:09 +02:00
Samuel Georges 2f8d8ffea6 Update select2 4.0.2 -> 4.0.3
This fixes the native focus event echoing to the select2 control, our workaround removed
2016-10-17 09:15:30 +11:00
Samuel Georges d788b7e03f Use select2 on touch devices
This is a relic from when select2 v3 had no mobile support, we use select2 v4 now that has been tested with mobile/touch devices.
Refs #108
Clean up some white spaces
2016-10-17 08:38:01 +11:00
Samuel Georges 571ceff1ef Merge pull request #2416 from GitJaap/develop
Add current url to ajax requests in requestOptions used in XHR full pageloads
2016-10-17 08:06:38 +11:00
Samuel Georges 622384d432 Improve changelog parsing
Recompile system LESS files
Refs #2414
2016-10-17 07:38:20 +11:00
Samuel Georges 9ddd3b71dc Merge pull request #2414 from gergo85/develop
Improve the Plugin details page
2016-10-17 07:17:29 +11:00
Samuel Georges 19bab2b472 Merge pull request #2419 from LukeTowers/patch-6
Pass current model to record finder scope method
2016-10-15 10:50:54 +11:00
Samuel Georges 259e0c0226 Add support for recordOnClick in relationRender 2016-10-15 10:11:54 +11:00
Samuel Georges 8eafcaa090 Encode extra config to isolate the logic
Fixes #2417
2016-10-15 10:10:11 +11:00
Samuel Georges 7b8f17e6d1 Align number columns right as per docs
Fixes #2396
2016-10-14 08:07:49 +11:00
Samuel Georges f18ff0daac Verify fallback lang actually exists before using it
This fixes an error 500 when trying to reference a non-existent language
Fixes #2358
2016-10-13 20:38:15 +11:00
egerheed 590b697574 Updates Norwegian language file for backend (#2402)
* Updates Norwegian language file for backend
2016-10-13 19:57:54 +11:00
Samuel Georges 733158060e Fixes indentation
Refs #2400
2016-10-13 19:52:37 +11:00
Samuel Georges 4c39b340fe This should really be long text
Refs #1422
2016-10-13 06:44:33 +11:00
Samuel Georges 991f7fc3b8 Fixes styling formatted content as raw
Refs #2390
2016-10-13 06:35:34 +11:00
Samuel Georges d62bbd5c5b Merge pull request #2390 from dshoreman/patch-3
Format the formatted tab for mail logs
2016-10-13 06:31:55 +11:00
Samuel Georges 5eab7bc365 Handle when editor is not initialized yet
https://github.com/rainlab/pages-plugin/issues/197
2016-10-13 05:57:38 +11:00
Luke Towers 567e464550 Pass current model to record finder scope method
This improves the extensibility of the record finder form widget by passing the current model to the query scope that will be applied to the records being displayed. It allows the use of attributes of the current model in the query scope applied to the records being displayed as options to select.

In my use case, I have a main Survey model with related Field models. Field models can have parents and children for a tree structure, but I only want fields to have parents and children that are:
**a) Not the main record itself**
**and b) Members of / related to the same Survey model**

By passing the current model to my query scope, I can filter out ineligible records like so:
```
/**
 * Limit results to only records that are eligible to be parents of the provided model
 *
 * @param Query $query
 * @param Model $model The model to check for eligible parents agains
 * @return Query
 */
public function scopeEligibleParents($query, $model) {
    return $query->where('id', '!=', $model->id)
            ->where('parent_id', '!=', $model->id)
            ->where('survey_id', '=', $model->survey_id);
}
```
2016-10-11 17:15:40 -06:00
Samuel Georges de1b85e796 Rich editor content saves when in code view mode
Refs https://github.com/rainlab/pages-plugin/issues/193
2016-10-12 06:42:36 +11:00
Samuel Georges 8c91bfe66c Update froala to latest, recompile assets 2016-10-12 06:33:28 +11:00
Samuel Georges 5746f4dec0 Fixes missing ace vendor path
Refs https://github.com/rainlab/pages-plugin/issues/193
2016-10-12 06:13:01 +11:00
Jaap Wesdorp 972cad3f6f Add current url to ajax requests in requestOptions 2016-10-11 17:33:04 +02:00
Szabó Gergő dfccf7fc4e Improve the Plugin details page 2016-10-11 10:59:30 +02:00
Szabó Gergő d7f1d523f0 Translate some strings (#2395)
* Translate some strings
2016-10-11 08:29:26 +11:00
Samuel Georges 7d13d39142 Merge pull request #2410 from vojtasvoboda/feature/cs-locale
Update CS locale
2016-10-11 08:27:13 +11:00
Samuel Georges 38c0736164 Merge pull request #2405 from adrenth/feature/dutch-language
Update Dutch language
2016-10-11 08:26:59 +11:00
Samuel Georges 126f56059a Fixes double margin on toolbar dropdowns 2016-10-08 05:51:27 +11:00
Vojta Svoboda add2df2ede Update CS locale 2016-10-06 11:19:48 +02:00
Samuel Georges 19c3c19a00 Added extended useList options, including raw output 2016-10-06 18:44:26 +11:00
Alwin Drenth 48d38a8e11 Update Dutch language 2016-10-03 17:21:55 +02:00
Samuel Georges 3c7968161a Add icon badges to lists 2016-09-30 10:36:10 +10:00
Samuel Georges 757221dfaf Tweak list alignment in callouts 2016-09-30 10:15:35 +10:00
Samuel Georges a97208c6a1 Add more detail to callout docs 2016-09-30 10:09:15 +10:00
Samuel Georges 726fe5c6d7 Add docs for static mode flash messages 2016-09-29 15:57:03 +10:00
Samuel Georges fe74fcb8e0 Comma concat all single dimension arrays, for text columns
This is useful when the attribute is a basic jsonable store and needs to be in a suitable format for "useList" export mode
2016-09-28 16:31:21 +10:00
Samuel Georges b3fe8de7fb Prevent extra config from bleeding to other definitions 2016-09-28 13:26:28 +10:00
Samuel Georges baefa3e50d Allow passing arbitrary recordUrl to relationRender 2016-09-27 20:39:29 +10:00
Samuel Georges 0d336151d2 Improvements to data persistence, rework readOnly
Fixes #2308
2016-09-27 20:21:32 +10:00
Samuel Georges 1e3f5a22ef Provides an opportunity to manipulate the field configuration.
Refs #2245
2016-09-27 17:00:26 +10:00
Samuel Georges cd0cd260b5 Make manage[form] config optional
There are times when manage form mode just isn't needed. This will make the view[list] unclickable, which is OK
2016-09-27 16:53:46 +10:00
Samuel Georges 0b345ad592 Add 'readOnly' spec to form field
Same as disabled except data is still posted back
2016-09-27 16:50:52 +10:00
Samuel Georges 30bb33b6ba Update FontAwesome to v4.6.3
Recompile assets
2016-09-26 09:27:40 +10:00
Dave Shoreman 67e682f4ff Format the formatted tab for mail logs
The default markup is built by the jQuery plugin, meaning the formatted tab just shows raw data.

This checks for a Message-ID: string in the source to identify email logs, and uses the unescaped content of the raw tab to show a formatted email.
2016-09-25 04:10:53 +01:00
Samuel Georges 3499db5e53 Unescaped raw content is an oxymoron 2016-09-25 11:59:03 +10:00
Alvaro Cánepa 636b796a09 Access settings using "dot" syntax (#2363) 2016-09-20 07:25:47 +10:00
Mahmut Namli 85e9cb220a Updated turkish language files for all modules (#2377)
* Backend lang file updated for turkish

* Cms lang file updated for turkish

* System-client lang file updated for turkish

* System-lang lang file updated for turkish
2016-09-19 18:13:44 +10:00
Samuel Georges 5684cf6385 Merge pull request #2374 from octoberfa/master
Update Persian language
2016-09-18 18:00:52 +10:00
Samuel Georges 9b5851fbd5 Improves exception handling for invalid model resolver
A more specific error message is now shown when trying to resolve a model from an invalid source (eg: an array)
Fixes #2354
2016-09-18 13:44:13 +10:00
Samuel Georges cc2973e148 Merge pull request #2275 from Arekusei/develop
Added support for Many To Many polymorphic relations.(morphToMany and…
2016-09-18 12:08:57 +10:00
Sajjad c80675f7b4 Update Persian language 2016-09-16 18:55:31 +04:30
shellus 0643eea4c7 add zh-cn lang 2016-09-14 20:27:12 +08:00
Samuel Georges cc09f6eb53 Minor style fix 2016-09-14 19:00:25 +10:00
Samuel Georges 2659ae708f Add doc blocks 2016-09-09 06:16:24 +10:00
Scott Bedard 544a8c38cd Fixing a typo 2016-09-05 08:35:43 -07:00
linver a5047e0161 language zh-cn of changes 2016-09-03 13:05:28 +10:00
reg2005 b26fab725a New translation attachment_url
In Russian it will be so more correct
2016-09-03 12:59:02 +10:00
Samuel Georges a14a60881a Merge pull request #2239 from json-wong/patch-1
Create client.php for chinese.
2016-09-03 12:56:47 +10:00
Samuel Georges 58c669bf1e Exception handling when disabled.json returns null
Fixes #2341
2016-09-03 12:19:22 +10:00
Samuel Georges 6c474bcae9 Move list pagination out of table footer
Remove docs on list-unresponsive (removed a while ago)
Add topPartial and sidePartial options to list controller configuration (experimental)
2016-09-03 12:13:38 +10:00
Samuel Georges 600794c891 Fixes anchor button color in report widgets
Fixes simple list padding issue
Fixes #2342
2016-09-03 12:09:50 +10:00
Szabó Gergő da254af4e6 Update the Hungarian translate (#2334)
* Update the Hungarian translate
2016-09-03 09:44:32 +10:00
Isaev Ivan 2e0d283686 input: on paste 2016-08-29 13:44:25 +07:00
Samuel Georges 6b60673092 Don't show hover effects for rows with no links
Minor fix to head checkbox alignment
Recompile assets
2016-08-27 14:35:32 +10:00
Samuel Georges 8075b40bf0 Now that File facade is removed, we must apply chmod manually 2016-08-27 13:38:19 +10:00
Samuel Georges dd06cd13fa Handle cases where directory is not writable 2016-08-27 13:27:57 +10:00
Samuel Georges 1e0741e407 Fixes CodeParser concurrent access errors
Big thanks to @shina, @BearishSun and @MarcoROG for their help with finding a solution
Fixes #1250
2016-08-27 12:45:56 +10:00
Szabó Gergő 749e4c031c Translate the remove widget dialog (#2323)
* Translate the remove widget dialog
2016-08-27 09:14:31 +10:00
Samuel Georges 89e390edcc Popup will now shake when an error occurs
Improve memory management / garbage collection
2016-08-26 20:01:04 +10:00
Samuel Georges 58ed3e12d2 Improvements to row link script
If data-control="popup" or data-request="onSomething" is attached to the anchor, utilize that functionality when clicking the row
2016-08-26 19:11:38 +10:00
Samuel Georges 4a88e32bbb Add rowlink docs 2016-08-26 18:49:37 +10:00
Samuel Georges c8d8d4e931 Introduce new Cms helper
This is modeled after the Backend helper. Primarily used to generate URLs for the frontend, these are piped through the CmsController action. It would also be a good place to add a hook, if necessary later.
2016-08-20 14:43:49 +10:00
Samuel Georges 3698f13acb URL -> Url 2016-08-20 14:26:21 +10:00
Samuel Georges 7373cf2bfb Merge pull request #2324 from alxy/patch-13
ImportModel didnt respect encoding
2016-08-19 07:30:16 +10:00
Alexander Guth 61823329c8 ImportModel didnt respect encoding
In contrast to the preview CSV reader, the actual ``ImportModel`` did not respect any encoding values provided. This leads to bugs with any non utf8-compliant characters. This PR fixes the problem by adding the appropriate encoding filter (copied from the preview reader).
2016-08-18 21:11:21 +02:00
Jack Dark a6b0d3da7d Merge remote-tracking branch 'remotes/upstream/develop' into develop
# Conflicts:
#	modules/backend/behaviors/RelationController.php
2016-08-18 02:02:43 +03:00
Samuel Georges f670526015 Merge pull request #2320 from gabsource/fix-reorder-key-name
Reorder partial should use the model key name attribute to display the ID
2016-08-17 19:57:50 +10:00
Jérémy Gaulin 198230e281 Reorder must use the model `getKey()` method (configurable key name) instead of harcoded `id` property. 2016-08-16 19:36:55 +04:00
Samuel Georges de4e0e7b14 Merge pull request #2317 from gergo85/patch-1
Translated Froala missing keys for Hungarian
2016-08-16 20:13:37 +10:00
Szabó Gergő 813fdef1d1 Translated Froala missing keys for Hungarian 2016-08-16 08:49:20 +02:00
Samuel Georges 5253073f67 Merge pull request #2314 from digital-ronin/develop
Fixed Typo
2016-08-16 07:47:17 +10:00
Jérémy Gaulin 66965e7a43 Translated missing keys 2016-08-15 22:25:55 +04:00
Daniel-Bruni Ziermann 64e1095dc2 Fixed Typo 2016-08-15 15:06:55 +02:00
Aleksey Bobkov f1bd0d33b8 Minor fix in the file type validation 2016-08-13 14:54:59 -07:00
Samuel Georges b29cb9340a Merge pull request #2277 from jimcottrell/treeview-scrolling
Add scrolling to JS TreeView when dragging sortable elements
2016-08-13 15:32:57 +10:00
Samuel Georges 5c53b10c20 Merge pull request #2295 from gabsource/fix-relation-manage-readonly
Propagate the RelationController readOnly option to the viewClickList AJAX action
2016-08-13 15:30:58 +10:00
Samuel Georges 3d69b1d7a5 Add IE edge headers for policies stuck in compat mode
Fixes #1859
2016-08-13 15:29:58 +10:00
Samuel Georges 618a035616 Apply defined constraints to view mode
In the same way it is currently applied to manage mode
Fixes #2292
2016-08-13 15:21:17 +10:00
Samuel Georges c2d2250a1c RelationController "Remove" now works with deferred bindings
This brings the logic in line with the "Add" logic, using session keys where applicable
Fixes #1150
2016-08-13 12:41:03 +10:00
Samuel Georges 1c3631bede Datepicker can use an expressed date for default value
@Carbon::parse was still failing, wrapped in do nothing try/catch instead
We don't seem to need to prefix time values anymore, since DateTimeHelper::makeCarbon should handle it
Fixes #2299
2016-08-13 11:29:01 +10:00
Samuel Georges d7b9b4f65e Fixes vague error when attribute is not fillable
Previously an error was being thrown with just the attribute name, not helpful at all.
Fixes #2302
2016-08-13 10:48:52 +10:00
Samuel Georges 6070d2f6bd Fixes unstyled tab area (Pages plugin > Edit page) 2016-08-13 10:17:49 +10:00
Samuel Georges e64b08c697 Prevent rename media file to blocked type
Fixes #2304
2016-08-13 09:49:13 +10:00
Samuel Georges 6353ded91f Brand settings can now be seeded from config 2016-08-13 07:56:11 +10:00
Samuel Georges 42a702f70a Fix the background for flex-layout panel like in RainLab.Builder
Working fix for #2260
2016-08-13 07:54:47 +10:00
Samuel Georges ee9554d846 Minor styling fix to exception page.
Clicking / selecting the exception lines no longer activates a weird textarea appearance
2016-08-11 06:50:09 +10:00
Jérémy Gaulin 7f22ba62dc Propagate the readOnly option to the viewClickList AJAX action 2016-08-08 08:35:57 +02:00
Samuel Georges c4007dd570 Recompile assets 2016-08-08 08:28:14 +10:00
Samuel Georges becc4ca5d1 Revert "Fix the background for flex-layout panel like in RainLab.Builder" 2016-08-08 08:26:17 +10:00
Samuel Georges 61ac68fd5e Allows relationRender to specify readOnly mode
Fixes #2245
2016-08-06 13:15:08 +10:00
coderwen 35e8b8f9fb Add missing Chinese translation (#2291)
Various chinese translations
2016-08-06 11:53:23 +10:00
Szabó Gergő 7f3527759c Update the Hungarian translate (#2271)
* Update the Hungarian translate
2016-08-06 11:46:29 +10:00
Samuel Georges c69b8077f4 Merge pull request #2284 from MarvinDurot/develop
Fix list refresh with multiple definitions after the index_onDelete method is ca…
2016-08-06 11:39:47 +10:00
Samuel Georges 556b951e63 Calling dynamic methods for extended components
In the spirit of #2288
2016-08-06 09:55:42 +10:00
Samuel Georges c5bc6612d0 Merge pull request #2288 from soulshockers/patch-1
Fixed calling dynamic methods for dynamically extended widgets.
2016-08-06 09:52:48 +10:00
Samuel Georges 0b0e158009 Recompile assets
Refs #2267
2016-08-06 09:47:26 +10:00
Samuel Georges 72095c3982 Merge pull request #2219 from Herlevsen/input_preset_normal
Add 'normal' field preset type
2016-08-06 08:52:56 +10:00
soulshockers e10c162667 Fixed calling dynamic methods for dynamically extended widgets. 2016-08-05 18:51:27 +03:00
Samuel Georges b02e4d7ecf Resolve paths correctly when deep hashing
Fixes #2270
2016-08-05 07:51:15 +10:00
MarvinDurot ce1e7949d7 Fix multiple definition list refresh when index_onDelete method is called 2016-08-04 12:46:11 +02:00
Jim Cottrell 1d91c221b0 Add scrolling to JS TreeView when dragging sortable elements 2016-08-02 16:08:17 -06:00
Jack Dark aaab9c2eaa Added support for Many To Many polymorphic relations.(morphToMany and morphedByMany) 2016-08-02 17:56:49 +03:00
Samuel Georges 59c1d57b3f Revert "fix hardcoded sort order name" 2016-08-02 19:53:20 +10:00
Samuel Georges 2a4ea398f8 Merge pull request #2267 from cdarken/develop
Added ROMANIAN_MAP to modules/system/assets/ui/js/input.preset.js
2016-08-01 19:44:36 +10:00
Samuel Georges 5c2ef275ad Merge pull request #2264 from gabsource/gender-neutral-relation-fr-translation
Improved french translation for model relations
2016-08-01 19:39:49 +10:00
Samuel Georges aeb2b18393 Merge pull request #2262 from gabsource/styles-for-plugins-details-table
Styles for markdown generated tables in the plugin details view
2016-08-01 19:39:29 +10:00
Samuel Georges 48ae2631cd Merge pull request #2261 from cesarzagonel/fix-hardcoded-sort-order-name
fix hardcoded sort order name
2016-08-01 17:40:43 +10:00
Cătălin Georgescu b01f4728a5 Added ROMANIAN_MAP to modules/system/assets/ui/js/input.preset.js for proper slug generation 2016-07-31 19:11:55 +03:00
Jérémy Gaulin 564fb5d330 Changed french relation translation to something more gender neutral. 2016-07-31 14:38:15 +02:00
Jérémy Gaulin 7ca97f4825 Styles for markdown tables in the plugin details view 2016-07-31 12:20:35 +02:00
Cesar e0f5b560bc fix hardcoded sort order name 2016-07-30 18:50:32 -04:00
Samuel Georges 9c1a97309d Merge pull request #2260 from gabsource/fix-flex-layout-background
Fix the background for flex-layout panel like in RainLab.Builder
2016-07-30 22:54:14 +10:00
Jérémy Gaulin c169684489 Fix the background for flex-layout panel like in RainLab.Builder 2016-07-30 10:42:13 +02:00
Jérémy Gaulin 2be29e6d48 Fix missing sprintf in exception message (wrong signature) 2016-07-30 10:14:21 +02:00
Samuel Georges b1a86b5f9f Performance enhancement
Don't use deep handing lastMod check if we don't have to
2016-07-30 16:14:54 +10:00
Samuel Georges 3a6bf35f06 Only need to pasa a single asset now 2016-07-30 16:06:37 +10:00
Samuel Georges cf76e4c64a Performance enhancement 2016-07-30 16:05:37 +10:00
Samuel Georges b08e2c4912 Introduce deep hashing on asset combiner
Added cms.enableAssetDeepHashing config item, disabled by default
Recompile assets
Refs #2248
Refs https://github.com/octobercms/library/pull/225
2016-07-30 15:06:50 +10:00
Samuel Georges a50d3c1387 Merge pull request #2248 from christianWilling/fix-asset-cache
Fix asset cache
2016-07-30 13:01:20 +10:00
Samuel Georges 96eba6febc Roll back uncommon features
Refs #2249
2016-07-30 12:04:21 +10:00
Samuel Georges ec47cba33f Merge pull request #2249 from gergo85/develop
Improve the Administrators list
2016-07-30 11:56:35 +10:00
Samuel Georges 325232fe8e Minor UI fix 2016-07-30 11:54:01 +10:00
Samuel Georges 0573e0593a Search should persist across pagination
The search term is now reset only when the record finder is first opened
Fixes #2161
2016-07-30 11:46:36 +10:00
Samuel Georges fdcfe801a7 Write tests for #2258
Prevent nulling when model fails validation
2016-07-30 10:59:25 +10:00
Samuel Georges b6ecc65275 Merge pull request #2252 from gergo85/patch-1
Translate the Loading message
2016-07-28 19:28:44 +10:00
Samuel Georges 4c84adb77e Merge pull request #2251 from LukeTowers/develop
Enable refresh on form controller requests (correct branch)
2016-07-28 19:25:55 +10:00
Szabó Gergő fa146aaea7 Translate the Loading message 2016-07-28 09:15:12 +02:00
Luke Towers b26eeed03c Enable refresh on form controller requests (correct branch)
This adds support for a redirect to the current page (a refresh) to be returned by the form controller. An example use case is adding `data-request-data="refresh:1"` to the save button on an update form. I'm using it for an update form that disables certain fields (including a relationRender partial) based on values submitted on that page. Refreshing the view after saving allows my disabling rules to take effect.
2016-07-27 09:05:12 -06:00
Szabó Gergő e956b24cce Add new columns for Administrators list 2016-07-27 15:09:00 +02:00
Szabó Gergő c37f078e29 Improve the Administrators list 2016-07-27 11:50:44 +02:00
Christian Willing 2b71055677 change spaces 2016-07-27 11:49:16 +02:00
Samuel Georges 83a541f819 Minor code consistency 2016-07-27 17:21:38 +10:00
Samuel Georges 3ab90da6b5 Take data from form widget first, then request
URL -> Url
2016-07-27 17:17:22 +10:00
Json 3206f6657d Create client.php 2016-07-24 21:48:27 +08:00
Jens Herlevsen fe24864d87 Add 'exact' field preset type to input.preset.js 2016-07-24 13:10:38 +02:00
Samuel Georges 78a4067564 Make logic more explicit
This tightens up the rules of 7baea87068
2016-07-23 15:50:48 +10:00
Samuel Georges c70db75d38 Pass the data set along with getOptions methods
This is useful when the model is unreliable, because it is not always populated with the relevant data set. This argument is only needed in edge cases, like when using a repeater or other split class<->data scenarios
Refs #2235
2016-07-23 15:16:57 +10:00
Samuel Georges 675a6a4224 Code improvements
Refs #2235
2016-07-23 14:22:36 +10:00
Samuel Georges 422098c9c7 Fixes inconsistency in popup.js API
Fixes #1685
2016-07-23 13:54:56 +10:00
Samuel Georges 07b0c7d0ce Merge pull request #2235 from acasar/nested-depends-on
DependsOn in repeater
2016-07-23 13:36:24 +10:00
Samuel Georges 80fb1f42cc Further code improvements
Refs #2233
2016-07-23 13:06:38 +10:00
Samuel Georges b934e8bd98 Merge pull request #2233 from acasar/fix-nested-repeater
Fix nested repeater sorting
2016-07-23 13:00:31 +10:00
Evgeny Razumov 37a5ae611b Bug fix in taglist widget with nameFrom option
Fixes #2231
2016-07-23 12:57:08 +10:00
Antony Tsioukas b64b480918 Greek Language Update 2016-07-23 12:40:32 +10:00
CSNWEB 34bd318427 Fix searching in non text fields under Postgres
Fixes #2092
2016-07-23 12:24:41 +10:00
Samuel Georges 7baea87068 Allow AJAX handlers to pipe objects to Laravel
Treat non scalar, non array, non RedirectResponse, non null as a Laravel compatible response
This brings AJAX handlers in line with page cycles, which do the same thing if the response is not a string. However in AJAX we should treat any scalar as a "result", not just a string. For all else (where not null), let Laravel handle it as a custom response object -- could be a model for serialization, or anything compatible.
Importantly to note when a custom redirect is sent, October's workflow is completely wiped out, so any partial updates, redirects, etc. will not occur. This is a normal and fair expectation.
Fixes #1784
2016-07-23 11:57:15 +10:00
Samuel Georges 584f2871b0 Update pikaday to allow disabling specific dates
Fixes #2237
2016-07-23 11:30:11 +10:00
Samuel Georges c7724f7c90 Minor rollback
Not all widget base classes will allow arg 1 from being omitted, specifically Report Widgets that define drop down options
Fixes #2229
2016-07-23 11:17:58 +10:00
Samuel Georges 8b21ed7d6f Exception handling
Where a theme is set that does not exist
Fixes #2223
2016-07-23 11:02:26 +10:00
Samuel Georges ad67c9ab09 Buttons container has an inner toolbar
Consider this when adding new buttons without insertBefore/insertAfter definition
Fixes #2194
2016-07-23 09:53:23 +10:00
Samuel Georges 5af9fcbfdc Sidebar needs to sit above dropdown overlay
This prevents the mouseout event firing and ending the entire show
Recompile assets
Fixes #2190
2016-07-23 09:42:18 +10:00
Anže Časar 79bb4c2035 Nested DependsOn 2016-07-22 00:38:32 +02:00
Anže Časar 453096bb27 Fix nested repeater 2016-07-21 18:55:03 +02:00
Samuel Georges 676196d304 Use starts_with instead of regex 2016-07-16 15:34:20 +10:00
Samuel Georges dbdf8f780a Merge pull request #2128 from slipgrom/develop
morphMany Relation support
2016-07-16 14:08:35 +10:00
Samuel Georges 9c12160f5d october:mirror no longer experimental 2016-07-16 13:14:59 +10:00
Samuel Georges 0a3dddf569 Merge pull request #2206 from JoelESvensson/patch-2
Escapes exception output
2016-07-16 13:13:03 +10:00
Samuel Georges c3f76ce61c Merge pull request #2207 from JoelESvensson/fix-october-mirror
Only public folder should be mirrored
2016-07-16 13:11:59 +10:00
Samuel Georges e970d80443 Align AJAX logic: merge custom response last
This is to allow overriding the standard values
Refs #2209
2016-07-16 13:11:10 +10:00
Samuel Georges 09adbbe069 Merge pull request #2209 from LukeTowers/develop
Moves AJAX handler response handling
2016-07-16 13:07:54 +10:00
Samuel Georges 346dc91d72 Merge pull request #2216 from acasar/patch-1
Pass the router reference on beforeRoute event
2016-07-16 12:53:14 +10:00
Anže Časar 68deb59265 Pass the router reference on beforeRoute event 2016-07-15 17:05:25 +02:00
Luke Towers b73811fefc Moves AJAX handler response handling
Fixes octobercms/october#2208
2016-07-13 09:51:18 -06:00
Joel E. Svensson dcfc0897fe Only public folder should be mirrored 2016-07-13 02:02:02 +02:00
Samuel Georges c8f8c5cc27 Merge pull request #2200 from mplodowski/polish-lang
Polish language update (pl)
2016-07-13 08:01:53 +10:00
Michał Płodowski bbf503f212 German datepicker translation 2016-07-11 19:55:35 +02:00
Michał Płodowski 75dbd74bca Polish language update (pl) 2016-07-11 19:34:53 +02:00
Joel Ekström Svensson 5f7b7d8c6d Escapes exception output
Fixes #2198
2016-07-11 17:32:30 +02:00
Christian Willing 743d2d1b4e added scss to core 2016-07-10 19:44:54 +02:00
Sebastian Hilger 87cd7d8bf6 Added missing backend translations (German) (#1825)
* Added auth.title which was missing in the German language file

* Added missing backend translations to two language files

* added more German translations
2016-07-09 20:43:01 +10:00
Samuel Georges 8e4142558b Merge pull request #1741 from ARH-Digital/develop
Add morphic relations to backend
2016-07-09 20:38:21 +10:00
Samuel Georges cc28b35b07 $this is not accessible in static context
Fixes #2193
2016-07-09 05:50:01 +10:00
Michał Płodowski 7b1437d026 Fix database config parsing 2016-07-08 17:23:03 +10:00
Michał Płodowski fb7e7ff164 Command for changing configuration to env syntax 2016-07-08 17:23:03 +10:00
Aleksey Bobkov 53b8df0721 Force rich editor to synchronize when a form is saved. 2016-07-06 18:27:27 -07:00
Samuel Georges 305f20e4f9 Merge pull request #2164 from Herlevsen/danish_backend
Expose danish language in backend locale dropdown
2016-07-07 08:00:26 +10:00
Samuel Georges 3aa7afcbf2 Merge pull request #2159 from side-by-side/patch-1
Added missed russian translation
2016-07-07 07:59:59 +10:00
Samuel Georges fe3b61f802 Merge pull request #2157 from prasanth-darsan/develop
error on saving attachment config when in pivot form of a relation
2016-07-07 07:59:42 +10:00
Samuel Georges 9be8a8c0a3 Minor code tidy 2016-07-07 07:56:10 +10:00
Samuel Georges dd86a13218 Merge pull request #2140 from reg2005/patch-3
Critical bugFix in themeData.php
2016-07-07 07:54:53 +10:00
Samuel Georges b4e9325a99 Merge pull request #2137 from Cladis/master
Adding Ukrainian translation of back-end
2016-07-07 07:52:08 +10:00
Félix Desjardins 10ec9030b3 FR-CA with Canadian Flag! 2016-07-06 17:15:55 -04:00
Christian Willing c343758d7c asset cache fix 2016-07-06 11:21:15 +02:00
Samuel Georges 5eab01b8bd Update composer versions
Rollback 8dd2e97cf7
2016-07-06 17:15:41 +10:00
Samuel Georges 68923d406b Update Froala to latest (2.3.3)
Recompile assets
2016-07-05 20:08:44 +10:00
Samuel Georges 4ca30f9888 Beautify saved content 2016-07-05 19:58:51 +10:00
Jens Herlevsen 40a755a6cc Expose danish language in backend locale dropdown 2016-07-03 19:36:24 +02:00
Samuel Georges 49641a31d0 Remove the dropup when there are no widgets
Fixes #2123
2016-07-03 14:53:37 +10:00
Samuel Georges 43eb8c4946 Logic error. Fixes #2154 2016-07-01 18:56:58 +10:00
Pavel ccf7a3b6e5 Added missing russian translation 2016-06-29 19:40:58 +03:00
Prasanth Darsan 6cc50b8ca8 Fixed error on saving attachment config when its put on pivot form of a relation 2016-06-28 23:17:27 +05:30
Samuel Georges b7d0c19a38 Merge pull request #2151 from freestream/fix/sv-translation
Changed and remove some english words in Swedish translation file
2016-06-27 16:44:16 +10:00
Anton Samuelsson 3a0c2c8270 Changed and remove some english words in Swedish translation file 2016-06-27 08:38:39 +02:00
Samuel Georges d8f1c0a73f Merge pull request #2126 from gustavogodoi/patch-1
Update pt-br lang
2016-06-25 10:39:54 +10:00
Samuel Georges fdb1d13ede Merge pull request #2134 from Herlevsen/danish_translation
Add danish translation
2016-06-25 10:39:33 +10:00
Samuel Georges cfb7207ae1 Clarify maintenance mode behavior
Refs https://youtu.be/JztbNGfi_Qk?t=9m38s
2016-06-24 06:48:16 +10:00
reg2005 953b92ba0a Critical bugFix in themeData.php
Additional check is added, without it there is a critical error "Call to a member function hasCustomData() on null"
2016-06-20 16:18:39 +03:00
Samuel Georges d7ef9b1738 Apply chmod rules to combiner cache 2016-06-18 09:23:16 +10:00
Jens Herlevsen be2bdb010b Add danish translation 2016-06-17 23:48:37 +02:00
Roman Gerasimov 587b8a449d morphMany Relation support 2016-06-17 10:55:03 +03:00
Samuel Georges d3b2809866 htaccess now resembles october:mirror command
Added 'resources' as a potential asset storage directory name
2016-06-17 07:09:14 +10:00
gustavogodoi 623627ce24 Update pt-br lang
Fixing typo and improving.
2016-06-16 17:25:35 +01:00
Samuel Georges 6ca828a1fa Always return an active theme and data 2016-06-16 08:01:34 +10:00
Samuel Georges a544c6822b Merge pull request #2114 from side-by-side/patch-1
Removes hardcoded "Misc" settings group translation.
2016-06-15 17:19:52 +10:00
Samuel Georges bcff1d3ecd Widget classes are now extendable
Fixes #2078
Fixes #1586
2016-06-15 17:10:46 +10:00
Cladis 8388998b64 Adding Ukrainian translation 2016-06-14 23:42:35 +03:00
Pavel c34b2afd9c Removes hardcoded "Misc" settings group translation.
This pull request allows to properly show "Misc" setting group in other languages.
2016-06-12 14:23:42 +03:00
Samuel Georges 7d171f4453 Merge pull request #2105 from triasrahman/develop
Fix fileupload image css on sidebar
2016-06-11 15:34:01 +10:00
Samuel Georges 04c4fe9633 Fixes logic error in filter search
The search was using !$.inArray when the expression should be $.inArray === -1 since it returns the index of the value in the array.
Also tidied up the code so it is easier to read.
Fixes #1918
2016-06-11 15:09:08 +10:00
Samuel Georges d1b765fa5e Definition of a drag is now 3 pixels
Fixes #1554
2016-06-11 14:28:15 +10:00
Samuel Georges 927250e9c9 Allow customization of default rich editor buttons
Fixes #2078
Recompile assets
2016-06-11 13:51:34 +10:00
Samuel Georges ada26ed64a Improve logic and fix trimming when slash not present
Fixes #2104
2016-06-11 13:45:52 +10:00
Samuel Georges 536a4b382c RecordFinder can specify number of records per page
Fixes #2082
Fix spacing on composer.json
2016-06-11 13:37:36 +10:00