Fix some JS glitch with external use
This commit is contained in:
parent
51ec649b3b
commit
6c29ff80d2
@ -71,6 +71,8 @@ if (!class_exists('cartpaujBBCodeParser'))
|
|||||||
|
|
||||||
function bbc2html($subject)
|
function bbc2html($subject)
|
||||||
{
|
{
|
||||||
|
wp_enqueue_script('mingle-forum', plugins_url('js/script.js', __FILE__), array('jquery'));
|
||||||
|
|
||||||
$codes = array(array(), array());
|
$codes = array(array(), array());
|
||||||
preg_match_all('/\[code\](.+)\[\/code\]/Uis', $subject, $codes);
|
preg_match_all('/\[code\](.+)\[\/code\]/Uis', $subject, $codes);
|
||||||
|
|
||||||
|
@ -116,8 +116,8 @@ function uncheckglobal(headerfield, checkform){
|
|||||||
checkform.mod_global.checked = false;
|
checkform.mod_global.checked = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery().ready(function () {
|
jQuery(function() {
|
||||||
jQuery('.mingle-spoiler-view li:first-child').click(function () {
|
jQuery('.mingle-spoiler-view li:first-child').live('click', function() {
|
||||||
var text = jQuery(this).parent().find('li:last-child');
|
var text = jQuery(this).parent().find('li:last-child');
|
||||||
if (text.is(':hidden')) {
|
if (text.is(':hidden')) {
|
||||||
text.slideDown('200');
|
text.slideDown('200');
|
||||||
|
Loading…
Reference in New Issue
Block a user