summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author8chan <admin@8chan.co>2014-10-06 18:36:19 -0700
committerczaks <marcin@6irc.net>2014-10-07 04:41:05 +0200
commit1f28316fca47c89ecc888291ddbd615db1215196 (patch)
treed45bcea389113d42c2552480b602f846c83ac2ec
parentc4dc3f4d477b49a402e5300cdbf72e51e1665b39 (diff)
Make inline.js work in mod panel
Conflicts: inc/instance-config.php
-rw-r--r--js/inline.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/js/inline.js b/js/inline.js
index 1ce0edc3..a267b4cd 100644
--- a/js/inline.js
+++ b/js/inline.js
@@ -1,4 +1,4 @@
-;(function() {
+onready(function() {
var App = {
cache: {},
get: function(url, cb) {
@@ -60,7 +60,9 @@
targetOP = srcOP
} else {
node = $(this)
- targetOP = this.pathname.match(/(\d+).html/)[1]
+
+ var to_search = inMod ? this.search : this.pathname;
+ targetOP = to_search.match(/(\d+).html/)[1]
}
var link = {
@@ -136,4 +138,4 @@
$('.body a:not([rel]), .mentioned a')
.attr('onclick', null)// XXX disable highlightReply
.click(inline)
-})()
+})