From add3dfae0dc73d12265249cf0d9e126d3fde8f1f Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 3 Jan 2012 09:36:39 +0100 Subject: [PATCH] merge concat --- javascript/TreeDropdownField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/TreeDropdownField.js b/javascript/TreeDropdownField.js index 8b9457b40..5d4deef3f 100644 --- a/javascript/TreeDropdownField.js +++ b/javascript/TreeDropdownField.js @@ -164,7 +164,7 @@ 'url': this.data('url-tree'), 'data': function(node) { var id = $(node).data("id") ? $(node).data("id") : 0, params = self.getRequestParams(); - params = params.concat([{name: 'ID', value: id}, {name: 'ajax', value: 1}]); + params = $.extend({}, params, {ID: id, ajax: 1}); return params; } }