diff options
Diffstat (limited to 'web/dom.js')
-rw-r--r-- | web/dom.js | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -3,7 +3,7 @@ * See LICENSE file for license details */ -define(["jquery", "jquery-bbq"], function($) { +define(["acf2/navigation", "jquery"], function(navi, $) { function href() { return $("<a>").attr({href: "javascript:void(0);"}); } @@ -14,9 +14,7 @@ define(["jquery", "jquery-bbq"], function($) { objectRef: function(value, el) { el = el || href(); if (value) { - el.click(function() { - $.bbq.pushState("#" + value); - }).text("Show"); + el.click(function() { navi.setPath(value); }).text("Show"); } return el; }, |