-
Notifications
You must be signed in to change notification settings - Fork 125
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
SS4.1.0 BUG: GridFieldOrderableRows no AJAX js loading, wrong AJAX processing #257
Comments
Hi @a2nt I can't reproduce with CWP 2.0.0-rc3, which includes:
I'm testing GridFieldOrderableRows via the "Form Fields" tab for a user defined form page, which uses it to reorder the form fields. When I drag and drop records I see a loading spinner which goes away after the AJAX has finished processing. Can you pease provide a working example so I can replicate this issue? |
@robbieaverill looks like the issue comes from colymba/gridfield-bulk-editing-tools 3.0.0-beta4 Causes the issue:
Works ok:
|
@a2nt I have not been able to reproduce this, even using the I'm going to close this as you've raised silverstripe/silverstripe-gridfield-bulk-editing-tools#176. I assume it'll either be the same as #246 or caused by the other module. |
@ScopeyNZ FYI if this issue is related to silverstripe/cwp#141 then I couldn't reproduce this locally, only on CWP. Not sure why. |
I have created SS-CMS issue report here about loading JS using AJAX headers which doesn't work: silverstripe/silverstripe-cms#2156
But there's an other issue:
To fix previous one I have tried to pre-load GridFieldExtensions JS+CSS using this config as temporary fix:
Extension assets were loaded when I have opened: /admin
So I have browsed to a specific page using tree view and re-ordered items:
So I have opened GridFieldExtensions.js, found a line $(".ss-gridfield-orderable tbody").entwine({
and form.addClass('loading'); inside it
Just before adding loading class I have created alert('Loading') and it works ok
Then there goes $.ajax request to check if it works I have created another alert('Success') inside success function and it doesn't works.
As temporary fix I have created done function
It works now, but it's just temporary fix.
Guess both bugs are connected and maybe it's just SS4.1.0 bug cuz actually it looks ok on your side
The text was updated successfully, but these errors were encountered: