修复jQuery加载不了的bug

This commit is contained in:
2012-10-17 22:09:30 +08:00
parent 00803629a3
commit 3e7dad0914

View File

@@ -1,7 +1,7 @@
<?php
/*
Plugin Name: Rss订阅
Version: 1.3
Version: 1.3.1
Plugin URL: http://xiaosong.org/tech/the-official-releas-of-rss-subscribe-plugin
Description: 订阅朋友的博客feed显示在自己博客~
Author: 小松
@@ -140,9 +140,8 @@ function lastRSS_css(){
echo '<link rel="stylesheet" href="'.BLOG_URL.'content/plugins/lastRSS/css/lastRSS.css" />'."\n";
}
function lastRSS_ajax(){
emLoadJQuery();
echo '<script type="text/javascript" src="'.BLOG_URL.'content/plugins/lastRSS/js/jquery-autoscroll.js"></script>'."\n";
echo '<script type="text/javascript">$(function(){$.get("'.BLOG_URL.'index.php?plugin=lastRSS&action=update&r="+Math.random());$("#lastRSS").load("'.BLOG_URL.'indx.php?plugin=lastRSS&action=ajaxshow&r="+Math.random(),function(){$(this).removeClass("lastRSS_loding").autoScroll()})})</script>'."\n";
echo '<script type="text/javascript">$(function(){$.get("'.BLOG_URL.'index.php?plugin=lastRSS&action=update&r="+Math.random());$("#lastRSS").load("'.BLOG_URL.'index.php?plugin=lastRSS&action=ajaxshow&r="+Math.random(),function(){$(this).removeClass("lastRSS_loding").autoScroll()})})</script>'."\n";
}
function lastRSS_adminUpdate(){
echo '<script type="text/javascript">$(function(){$.get("'.BLOG_URL.'index.php?plugin=lastRSS&action=update&r="+Math.random());})</script>'."\n";
@@ -157,6 +156,7 @@ function lastRSS_backup(){
if($DB->num_rows($is_exist_rssfeeds_query) != 0) array_push($tables, 'rssfeeds');
if($DB->num_rows($is_exist_rsslogs_query) != 0) array_push($tables, 'rsslogs');
}
emLoadJQuery();
addAction('data_prebakup', 'lastRSS_backup');
addAction('index_head', 'lastRSS_css');
addAction('index_loglist_top', 'displayLogIndex');