Skip to content

Commit

Permalink
Abstract the search form and livesearch action URLs
Browse files Browse the repository at this point in the history
making it easier to extend the search portlet with custom views or other
actions.
  • Loading branch information
rpatterson committed Jun 6, 2014
1 parent 25e9f1b commit ed33606
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Products/CMFPlone/skins/plone_ecmascript/livesearch.js
Expand Up @@ -29,8 +29,10 @@ var livesearch = (function () {
var $lastsearch = null,
$request = null,
$cache = {},
$querytarget = $form.attr('action').replace(/@@search$/g,"") + "livesearch_reply",
$$result = $form.find('div.LSResult'),
$querytarget = $form.attr('action').replace(
$form.data('action') || '@@search',
$$result.data('livesearch') || 'livesearch_reply'),
$shadow = $form.find('div.LSShadow'),
$path = $form.find('input[name="path"]');

Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGES.rst
Expand Up @@ -8,6 +8,10 @@ Changelog
4.3.4 (unreleased)
------------------

- Abstract the search form and livesearch action URLs making it easier to
extend the search portlet with custom views or other actions.
[rpatterson]

- Improve event_view - do not show time when user specifies the same start and
end time for an event.
[spereverde]
Expand Down

0 comments on commit ed33606

Please sign in to comment.