You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linked select JS handler must consider GET parameters in the add new URL.
I have made a fix in suit.js, think it needs to be included in repo:
var get_url = function ($add_link, $select) {
var value = $select.val();
return $add_link.attr('href').substring( 0, $add_link.attr('href').indexOf( "?" ) ) + '../' + value + '/';
};
The text was updated successfully, but these errors were encountered:
Have running suit with django 1.7 and got a problem with linked select widget.
Link on right side is based on Add new command URL, don't know why, but i have add new URL like http://127.0.0.1:8080/admin/main/marketmember/add/?_to_field=id
and because of it URL for selected object comes like this http://127.0.0.1:8080/admin/main/marketmember/add/?_to_field=id/../3
Linked select JS handler must consider GET parameters in the add new URL.
I have made a fix in suit.js, think it needs to be included in repo:
var get_url = function ($add_link, $select) {
var value = $select.val();
return $add_link.attr('href').substring( 0, $add_link.attr('href').indexOf( "?" ) ) + '../' + value + '/';
};
The text was updated successfully, but these errors were encountered: