Got these backwards.

This commit is contained in:
Ralph Bean 2015-07-06 16:00:14 +00:00
parent 037ffb2f7f
commit acce2e2c86
2 changed files with 2 additions and 2 deletions

View file

@ -141,7 +141,7 @@ var fedmenu = function(options) { $(document).ready(function() {
$.each(master_data, function(i, node) {
$.each(node.children, function(j, leaf) {
var theirs = normalize(leaf.data.url);
if (theirs.indexOf(ours) === 0) found = leaf;
if (ours.indexOf(theirs) === 0) found = leaf;
})
});
return found;

View file

@ -141,7 +141,7 @@ var fedmenu = function(options) { $(document).ready(function() {
$.each(master_data, function(i, node) {
$.each(node.children, function(j, leaf) {
var theirs = normalize(leaf.data.url);
if (theirs.indexOf(ours) === 0) found = leaf;
if (ours.indexOf(theirs) === 0) found = leaf;
})
});
return found;