-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH Keep State and show Search field if any keywords are presented. #1322
Closed
sabina-talipova
wants to merge
35
commits into
silverstripe:1.11
from
creative-commoners:pulls/1.11/gridfield-keep-state
Closed
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
c43cc48
MNT Refactor group tests into their own feature.
GuySartorelli 829b17d
MNT add new test for Group title validation
GuySartorelli 1f10403
extend lazy-loadable behavior
lekoala c691a26
fix selector
lekoala 4127139
update doc
lekoala 33a53e9
Update client/src/legacy/GridField.js
lekoala 3419492
fix jquery + remove once
lekoala 6efe864
refactor tabset
lekoala 1029b6d
fix undefined el
lekoala 386f4f2
consistent quotes
lekoala 81ba88b
better var name
lekoala 91e79d7
Run yarn build
GuySartorelli 6ce078f
missing ,
lekoala b2f1d72
Update client/src/legacy/TabSet.js
lekoala 0b1dc98
Update client/src/legacy/TabSet.js
lekoala 3a9b2be
Update client/src/legacy/TabSet.js
lekoala 6874b11
simplify PR
lekoala 3c87c2a
Update client/src/legacy/TabSet.js
lekoala 2df3a1e
Update client/src/legacy/TabSet.js
lekoala d2e2c1b
Update client/src/legacy/TabSet.js
lekoala 2ca3648
Update client/src/legacy/TabSet.js
lekoala 3914334
Update client/src/legacy/TabSet.js
lekoala ff9248b
Update client/src/legacy/TabSet.js
lekoala c570ecc
move lazyLoadGridFields
lekoala e7023e3
MNT Build bundle
GuySartorelli 19e1ea4
LeftAndMain - Extended batch actions form
mooror 5d32154
Built css and javascript bundles
nccomput 27568eb
LeftAndMain - Added missing use statement
5df3748
JS - Fixed variable naming issues and rebuilt
7641a6f
Javascript - Code quality changes
mooror decddc6
Javascript - Reset fields before displaying them
mooror c795d9b
styles - Replaced ID selector + Changed nesting
mooror 71d1d39
LeftAndMain - Removed changes to BatchActionsForm
mooror 8f07875
Built css and javascript bundles
mooror f135f89
ENH Show Search field if any keywords are presented
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure we're not just throwing away other GET vars that were already present
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. I'll check parameters that we pass in
GridField.php
class. Since, here I just grab all search params from scheme, that we also pass to Edit button and as URL for click. So, would be better to be sure that we have a correct value in the scheme.What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the URL for the gridfield we're currently looking at - which needs to include any GET parameters that are already in the URL.
So for example if I'm on some page
/admin/pages/edit/show/2?some-var=some-value
and I click paginate on a gridfield, thesome-var=some-value
shouldn't be removed. These may be here for any reason beyond gridfield, and removing them may cause problems in some project-specific code that relies on them for whatever reason.The edit and view buttons don't need these, because they're relevant only while you're on the page that holds the gridfield, not for the item edit form.