Skip to content
Snippets Groups Projects
Commit 2ea41188 authored by Jared Hancock's avatar Jared Hancock
Browse files

pjax: Fix pjax reloading of user directory pages

parent e9b4abb9
Branches
Tags
No related merge requests found
...@@ -125,7 +125,7 @@ $(function() { ...@@ -125,7 +125,7 @@ $(function() {
if (user && user.id) if (user && user.id)
window.location.href = 'orgs.php?id=<?php echo $org->getId(); ?>' window.location.href = 'orgs.php?id=<?php echo $org->getId(); ?>'
else else
$.pjax({url: window.location.href, container: '#content'}) $.pjax({url: window.location.href, container: '#pjax-container'})
}); });
return false; return false;
}); });
......
...@@ -190,7 +190,7 @@ $(function() { ...@@ -190,7 +190,7 @@ $(function() {
if (user && user.id) if (user && user.id)
window.location.href = 'users.php?id='+user.id; window.location.href = 'users.php?id='+user.id;
else else
$.pjax({url: window.location.href, container: '#content'}) $.pjax({url: window.location.href, container: '#pjax-container'})
}); });
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment