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
Change updated object in several places #66
Comments
Hi, same request here.
is dependant on this best_in_place field
I haven't found the way to refresh the image based on the changed version of negotiation_status. |
You may want to try adding the follwing JS
|
Thanks! Worked perfectly for me! |
This indeed works, thanks! |
I'm afraid that you can't get any objects in js-files...maybe you can move needed columns to attributes of your html tag with best_in_place ? |
It's up to your controllers to return the objects so that your JS can access them and update the page accordingly. In the function(event, data) above, 'data' will contains what your update controller returns. So you could code your update controller in a way that it will return the needed info. Another solution is to call another controller from your JS (using for example, here is what i have in my update controller : // respond to json request with
render :json => {"model" => @model} "ajax:success", function(event, data) {
var result = $.parseJSON(data);
// from here the result var will be accessible with all the data returned by the controller.
// result.model is your object - use result.model.attribute to get specific values...
} |
Hello
I use best_in_place in dialog window over the page that contains same objects, that I'm updating in dialog.
I.e. I have page:
I have _list:
And I have _project_group:
So I want to change project groups names on page after user update it in dialog. Is it possible?
The text was updated successfully, but these errors were encountered: