Merge pull request #2535 from Martimiz/3.1

Strip duplicate querystrings from the url before adding document.location.search
This commit is contained in:
Ingo Schommer 2013-10-16 12:41:52 -07:00
commit 0d993c1aac

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');