Skip to content

Commit

Permalink
Merge pull request #205 from open-sausages/pulls/1.0/page-not-found-i…
Browse files Browse the repository at this point in the history
…n-search-mode

FIX Add ability to ignore GET params when view grid field item in cms
  • Loading branch information
flamerohr committed Aug 27, 2017
2 parents f16fb24 + 47a3a5e commit de0ac2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion client/src/legacy/LeftAndMain.js
Expand Up @@ -1212,8 +1212,11 @@ $.entwine('ss', function($) {
/**
* Overload the default GridField behaviour (open a new URL in the browser)
* with the CMS-specific ajax loading.
*
* To opt out of this overload by adding `cms-loading-ignore-url-params` html
* attribute to the grid field.
*/
$('.cms .grid-field').entwine({
$('.cms .grid-field:not([cms-loading-ignore-url-params])').entwine({
showDetailView: function(url) {
// Include any GET parameters from the current URL, as the view state might depend on it.
// For example, a list prefiltered through external search criteria might be passed to GridField.
Expand Down

0 comments on commit de0ac2a

Please sign in to comment.