View Issue Details

IDProjectCategoryView StatusLast Update
0003653Composr alpha bug reports[All Projects] General / Uncategorisedpublic2018-09-05 04:12
ReporterChris GrahamAssigned ToSalman 
SeverityFeature-request 
Status resolvedResolutionfixed 
Summary0003653: Re-work block AJAXification code
DescriptionAs discussed on Skype.
TagsNo tags attached.
Sponsorship open0

Activities

Salman

2018-09-04 08:25

reporter   ~0005808

Last edited: 2018-09-04 08:30

View 5 revisions

I've replaced the block AJAXification code with a [data-ajaxify] behavior that is initialized using a [data-ajaxify] attribute on the element which contains the ajax results. It takes a JSON5 object of options. Links and forms that are supposed to be ajaxified need to marked using a [data-ajaxify-target="1"] attribute or you can specify a selector with the 'targetsSelector' option passed to [data-ajaxify]. Example:


<div data-ajaxify="{ callUrl: 'http://url/goes/here', callParamsFromTarget: [...this is an array of regexes for call URL params that will be taken from targets...], targetsSelector: 'a.my-child, form.another-child' }">
     < a class="my-child" href="http://some/url?param_name=param_value">Click Me</ a>
     < a data-ajaxify-target="1" href="http://some/url?param_name=param_value">Click Me Too</ a>
<div>

Chris Graham

2018-09-05 01:21

administrator   ~0005814

Great, thanks :)! So you can mark resolved?

Issue History

Date Modified Username Field Change
2018-07-31 23:30 Chris Graham New Issue
2018-07-31 23:30 Chris Graham Status non-assigned => assigned
2018-07-31 23:30 Chris Graham Assigned To => Salman
2018-09-04 08:25 Salman Note Added: 0005808
2018-09-04 08:26 Salman Note Edited: 0005808 View Revisions
2018-09-04 08:28 Salman Note Edited: 0005808 View Revisions
2018-09-04 08:28 Salman Note Edited: 0005808 View Revisions
2018-09-04 08:30 Salman Note Edited: 0005808 View Revisions
2018-09-05 01:21 Chris Graham Note Added: 0005814
2018-09-05 04:12 Salman Status assigned => resolved
2018-09-05 04:12 Salman Resolution open => fixed
2023-02-26 18:29 Chris Graham Category General => General / Uncategorised