mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 01:10:51 +01:00
Make inline.js work in mod panel
Conflicts: inc/instance-config.php
This commit is contained in:
parent
c4dc3f4d47
commit
1f28316fca
@ -1,4 +1,4 @@
|
|||||||
;(function() {
|
onready(function() {
|
||||||
var App = {
|
var App = {
|
||||||
cache: {},
|
cache: {},
|
||||||
get: function(url, cb) {
|
get: function(url, cb) {
|
||||||
@ -60,7 +60,9 @@
|
|||||||
targetOP = srcOP
|
targetOP = srcOP
|
||||||
} else {
|
} else {
|
||||||
node = $(this)
|
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 = {
|
var link = {
|
||||||
@ -136,4 +138,4 @@
|
|||||||
$('.body a:not([rel]), .mentioned a')
|
$('.body a:not([rel]), .mentioned a')
|
||||||
.attr('onclick', null)// XXX disable highlightReply
|
.attr('onclick', null)// XXX disable highlightReply
|
||||||
.click(inline)
|
.click(inline)
|
||||||
})()
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user