50 Commits

Author SHA1 Message Date
Luke Towers
06ba8c712f
Trigger the change.oc.formwidget event on update of records through relationcontroller. (#4673)
Fixes #4625. Credit to @danielbidala for the initial report and proposed fix.
2019-10-08 17:30:02 -06:00
Samuel Georges
2962f75221 Include the JSON parser natively in framework.js
We've also included it as a separate framework.parser.js file in case its needed by some external lib, such as Storm UI
2019-09-14 17:56:18 +10:00
Samuel Georges
ebcb7ee6fd
Add a small JSON Parser to October framework lib (#4527)
* Add a small JSON Parser to October framework lib
2019-09-14 17:29:31 +10:00
Alexander Guth
4e92686c1a Add support for filters in the RelationController configuration (#4241)
Credit to @alxy. Docs: https://github.com/octobercms/docs/pull/368
2019-05-04 09:08:12 +08:00
Tobias Kündig
7a277b4b9c Added support for dependsOn with relationships (#3539)
Credit to @tobias-kuendig. Added $.oc.relationBehavior.changed function. To keep track of changes made using the relation controller this new "changed" function is called every time a record is created, added, removed or deleted. The function triggers the change.oc.formwidget event on the form field that belongs to this relation controller so other form fields are notified about the changes.
2018-12-03 10:08:00 -06:00
Tschallacka
e8e4209909 Fix inflexible relation toolbar (#2760)
Improves support for models that don't use `id` as their primary key.
2017-07-04 18:56:38 -06: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
Samuel Georges
8eafcaa090 Encode extra config to isolate the logic
Fixes #2417
2016-10-15 10:10:11 +11:00
Samuel Georges
0d336151d2 Improvements to data persistence, rework readOnly
Fixes #2308
2016-09-27 20:21:32 +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
61ac68fd5e Allows relationRender to specify readOnly mode
Fixes #2245
2016-08-06 13:15:08 +10:00
Samuel Georges
51bef96db9 More styling changes and other minor improvements 2016-04-21 04:52:21 +10:00
Samuel Georges
762c5e754b Switch the manage popup title according to the button pressed
Fixes #1755
2016-03-25 14:03:11 +11:00
Samuel Georges
01b2d0d186 Add relation-inset class, fixes relation-flush 2015-12-19 09:53:12 +11:00
Michał Płodowski
e388c18369 Added focus on search field when pivot popup opens. 2015-08-31 20:21:50 +02:00
Michał Płodowski
37f7c1d62e Fix #1407 2015-08-31 20:19:58 +02:00
Samuel Georges
fdbd5d8b3c Update redactor to latest, minor cleanup 2015-07-29 19:17:05 +10:00
Samuel Georges
ddff853e10 Restyle relation controller to use more minimalist design 2015-06-09 18:48:47 +10:00
Alvaro Cánepa
03be3c3d77 Fix translation title on popup 2015-05-29 08:31:50 -03:00
Alvaro Cánepa
67e194231d Fix translation title on popup 2015-05-29 08:29:58 -03:00
Alvaro Cánepa
061fe89d5a Fix translation title on popup 2015-05-29 08:19:38 -03:00
Samuel Georges
8859723f35 Fixes #1062 - Subsequent popups are passed _relation* fields
Note in future: The bindToPopups() function could/should be made recursive
2015-04-11 12:23:49 +10:00
Samuel Georges
3eede4a7b7 Reorganise and improve RelationController
Fix bug in DataTable limited to 10 records
2015-03-27 22:20:52 +11:00
Samuel Georges
398177b006 Full pivot support added to RelationController 2015-03-19 20:01:08 +11:00
Samuel Georges
a1ac5edbf7 Various minor fixes and improvements 2015-03-18 19:28:14 +11:00
Samuel Georges
e48963b1e9 Improve mode detection for relations by using an event target 2015-02-28 19:33:11 +11:00
Samuel Georges
7145aac457 Prepare for CDN, config rename cms.plugins|themes|uploadsDir -> cms.plugins|themes|uploadsPath
Deprecate data-trigger-type on triggerapi
Fixes ref to Util class
2015-02-17 20:58:38 +11:00
Samuel Georges
7c1de4f728 Add export action to ListController behavior 2015-01-27 20:02:20 +11:00
Samuel Georges
ceae799152 Translate fix 2015-01-25 13:47:32 +11:00
Samuel Georges
b58666b4a0 Massive improvements to RelationController, most button types are available 2015-01-25 13:02:06 +11:00
Samuel Georges
25835e5f55 Implement belongsTo RelationController type 2015-01-21 20:53:19 +11:00
Samuel Georges
39daf773bc Implement hasOne RelationController type 2015-01-21 19:47:38 +11:00
Samuel Georges
ea34622840 Clicking a record in readOnly mode will open the manage form in preview mode
Use "recordOnClick: null" to retain the original behavior
2014-12-06 15:46:02 +11:00
Dmitriy
d8ed49b8cf Update _manage_form.htm
fix form title for update context
2014-11-23 21:59:48 +02:00
Sam Georges
38170d3101 Use popup loading indicator on relationcontroller behavior 2014-11-07 19:38:05 +11:00
Patrick Ward
90313deb53 Correction: change $relatedLabel variable to $relationLabel in pivot form. 2014-10-24 15:07:42 -04:00
Sam Georges
04462f5b4c The manage form should not share its session key with the parent 2014-09-17 09:46:48 +10:00
Sam Georges
001a9f92ff Fixes manage form so widgets fileupload can work correctly inside 2014-09-16 17:40:06 +10:00
Sam Georges
347e25babc Add search capability to manage mode (lists) 2014-09-06 13:18:55 +10:00
Sam Georges
a5d67bee27 Escape all the translated strings 2014-08-13 08:01:18 +10:00
Paul Wilde
a3c94d6355 Escape unescaped translations. Add trans() function during output for the Balloon and Widget Selector. 2014-08-12 21:46:19 +01:00
Paul Wilde
e0d9b1bb22 Fix argument name. 2014-08-12 01:21:09 +01:00
Paul Wilde
1d038d3173 More translation strings. 2014-08-12 01:15:38 +01:00
Sam Georges
f21eaf05a3 Minor 2014-08-07 20:42:39 +10:00
felix
7fd9e267a9 add Translation to backend
switch
relation create_button
relation add_button
2014-08-07 12:58:17 +04:00
Sam Georges
1221faae62 Session key fix to relation manager
My Settings context now uses correct breadcrumb
2014-07-02 20:49:45 +10:00
Sam Georges
3a275216e2 Add styles and readonly mode to relation controller 2014-06-30 17:01:53 +10:00
Sam Georges
d229fb287e Fixes #216 - hasMany related models can now be deleted 2014-05-28 22:07:00 +10:00
Sam Georges
dbc4043a90 Refs #216 - hasMany related model can now be updated 2014-05-28 21:58:39 +10:00
Sam Georges
71a5dd67ab Welcome to the world, October :-) 2014-05-14 23:24:20 +10:00