Browse files

BUG: javascript tree node updating fails when Translatable is used

Automatic tree node updating fails when for example creating a new
translation, due to the update URL containing two question marks,
due to the locale get parameter.

Fixed by using the $.path.addSearchParams utility function, which properly
checks for existing query string parameters.
  • Loading branch information...
1 parent bbb0868 commit a85530991cfcde86e6e4d346e5d743785abf7aea @forsdahl forsdahl committed Aug 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/javascript/LeftAndMain.Tree.js
@@ -342,7 +342,7 @@
- url:'urlUpdatetreenodes') + '?ids=' + ids.join(','),
+ url: $.path.addSearchParams('urlUpdatetreenodes'), 'ids=' + ids.join(',')),
dataType: 'json',
success: function(data, xhr) {
$.each(data, function(nodeId, nodeData) {

0 comments on commit a855309

Please sign in to comment.