bug fix
This commit is contained in:
parent
e8820e8d00
commit
ce31befb4e
|
@ -952,6 +952,8 @@ function rt_add_link_target( $content ){
|
||||||
foreach( $bits as $key=>$bit ){
|
foreach( $bits as $key=>$bit ){
|
||||||
// fix the target="_blank" bug after the link
|
// fix the target="_blank" bug after the link
|
||||||
if ( strpos( $bit, 'href' ) === false ) continue;
|
if ( strpos( $bit, 'href' ) === false ) continue;
|
||||||
|
// fix the target="_blank" bug in the codeblock
|
||||||
|
if ( strpos( preg_replace('/code([\s\S]*?)\/code[\s]*/m','temp',$content), $bit ) === false ) continue;
|
||||||
// find the end of each link
|
// find the end of each link
|
||||||
$pos = strpos( $bit, '>' );
|
$pos = strpos( $bit, '>' );
|
||||||
// check if there is an end (only fails with malformed markup)
|
// check if there is an end (only fails with malformed markup)
|
||||||
|
|
|
@ -1321,7 +1321,7 @@ var home = location.href,
|
||||||
AH: function () {
|
AH: function () {
|
||||||
if (Poi.windowheight == 'auto') {
|
if (Poi.windowheight == 'auto') {
|
||||||
if ($('h1.main-title').length > 0) {
|
if ($('h1.main-title').length > 0) {
|
||||||
var _height = $(window).height();
|
var _height = $(window).height()+"px";
|
||||||
$('#centerbg').css({
|
$('#centerbg').css({
|
||||||
'height': _height
|
'height': _height
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue