summaryrefslogtreecommitdiffstats
path: root/web/dom.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/dom.js')
-rw-r--r--web/dom.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/web/dom.js b/web/dom.js
index 44f8491..ba11827 100644
--- a/web/dom.js
+++ b/web/dom.js
@@ -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;
},