Strip duplicate querystrings from the url before adding document.location.search

When a querystring is passed with the url (for example Translatable locale) it is duplicated each time the content panel is reloaded, by adding document.location.search and so it should be stripped from the url first.
This commit is contained in:
Martimiz 2013-10-14 15:33:40 +02:00
parent 14e5c80dad
commit 364ce08f52

View File

@ -60,6 +60,9 @@
var url = $(node).find('a:first').attr('href');
if(url && url != '#') {
// strip possible querystrings from the url to avoid duplicateing document.location.search
url = url.split('?')[0];
// Deselect all nodes (will be reselected after load according to form state)
self.jstree('deselect_all');
self.jstree('uncheck_all');