Make inline.js work in mod panel

This commit is contained in:
8chan 2014-10-06 18:36:19 -07:00
parent ed94a1671d
commit db55a3040f
2 changed files with 6 additions and 3 deletions

View File

@ -128,6 +128,7 @@
$config['additional_javascript'][] = 'js/id_highlighter.js';
$config['additional_javascript'][] = 'js/id_colors.js';
$config['additional_javascript'][] = 'js/threadscroll.js';
$config['additional_javascript'][] = 'js/inline.js';
$config['font_awesome_css'] = '/netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css';

View File

@ -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)
})()
})