3730 Commits

Author SHA1 Message Date
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
v1.0.397
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 2be18764d47f78820d7f4a02ce3c0995358a16d1 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
Samuel Georges
dc85993584 Minor improvements
Add navbar-default styling out of the box
2017-02-03 05:40:24 +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
Samuel Georges
8d1ecb01b8 Improve nullable tests
Refs https://github.com/octobercms/october/issues/2612
v1.0.396
2017-02-02 05:15:47 +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
v1.0.395
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
Luke Towers
5c1a5bcea2 Merge pull request #2637 from gergo85/develop
Update the Hungarian translate
2017-01-30 09:34:57 -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
6c4c06e5ee Merge pull request #2635 from octobercms/LukeTowers-patch-1
Fix typo in RelationController (original #2460)
2017-01-28 16:05:06 -06: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 v1.0.394 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