]> git.0d.be Git - panikdb.git/commitdiff
wiki: load selected search result using ajax
authorFrédéric Péters <fpeters@0d.be>
Thu, 25 Jun 2020 14:03:35 +0000 (16:03 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 25 Jun 2020 14:03:35 +0000 (16:03 +0200)
panikdb/static/js/combo.wiki.js

index 5db2837d6b2f5396860a5a121720c696fb4d318b..b3279576b471725d40b97c3e80bae4917a717a7f 100644 (file)
@@ -515,7 +515,7 @@ function init_page() {
     load_page(location.href, false);
   });
 
-  $('#main-content').on('click', 'a[href]:not([rel])', function(e) {
+  $('#main-content, #search-results').on('click', 'a[href]:not([rel])', function(e) {
     var href = this.attributes.href.nodeValue;
     if (e.which === 2) return true;
     if (href.slice(0, 6) == '/wiki/') {