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.
This commit is contained in:
Niklas Forsdahl 2012-08-03 13:17:46 +03:00
parent bbb0868227
commit a85530991c

View File

@ -342,7 +342,7 @@
self.jstree('save_selected');
$.ajax({
url: this.data('urlUpdatetreenodes') + '?ids=' + ids.join(','),
url: $.path.addSearchParams(this.data('urlUpdatetreenodes'), 'ids=' + ids.join(',')),
dataType: 'json',
success: function(data, xhr) {
$.each(data, function(nodeId, nodeData) {