Merge branch 'yuanke' into develop
This commit is contained in:
commit
94dd8befc8
|
@ -25,6 +25,12 @@
|
||||||
<%= reply.notes.html_safe %>
|
<%= reply.notes.html_safe %>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function(){
|
||||||
|
showNormalImage('reply__<%= reply.id %>');
|
||||||
|
autoUrl('reply_<%= reply.id %>');
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<span class="c_grey fl">
|
<span class="c_grey fl">
|
||||||
<%= format_time reply.created_on %>
|
<%= format_time reply.created_on %>
|
||||||
|
@ -57,9 +63,3 @@
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<script type="text/javascript">
|
|
||||||
$(function(){
|
|
||||||
showNormalImage('reply__<%= reply.id %>');
|
|
||||||
autoUrl('reply_<%= reply.id %>');
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
|
@ -1353,7 +1353,7 @@ function autoUrl(id){
|
||||||
$("#"+id+" p,#"+ id +" span,#"+id+" em,#"+id+" h1,#"+id+" h2,#"+id+" h3,#"+id+" h4,#"+id+" strong,#"+id+" b,#"+id+" font,#"+id+" i").each(function(){
|
$("#"+id+" p,#"+ id +" span,#"+id+" em,#"+id+" h1,#"+id+" h2,#"+id+" h3,#"+id+" h4,#"+id+" strong,#"+id+" b,#"+id+" font,#"+id+" i").each(function(){
|
||||||
if ($(this).children().length == 0){
|
if ($(this).children().length == 0){
|
||||||
var html = $(this).text();
|
var html = $(this).text();
|
||||||
html = html.replace(/((https?|ftp|news):\/\/)?([a-z]([a-z0-9\-]*[\.。])+([a-z]{3}|aero|arpa|biz|com|coop|edu|gov|info|int|jobs|mil|museum|name|nato|net|org|pro|travel)|(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))(\/[a-z0-9_\-\.~]+)*(\/([a-z0-9_\-\.]*)(\?[a-z0-9+_\-\.%=&]*)?)?(#[a-z][a-z0-9_]*)?/g,function(full) {
|
html = html.replace(/((https?|ftp|news):\/\/)?([a-z]([a-z0-9\-]*[\.。])+(aero|arpa|biz|com|coop|edu|gov|info|int|jobs|mil|museum|name|nato|net|org|pro|travel)|(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))(\/[a-z0-9_\-\.~]+)*(\/([a-z0-9_\-\.]*)(\?[a-z0-9+_\-\.%=&]*)?)?(#[a-z][a-z0-9_]*)?/g,function(full) {
|
||||||
//没有://的都加上http://
|
//没有://的都加上http://
|
||||||
var reStr = full;
|
var reStr = full;
|
||||||
if (full.length > 0){
|
if (full.length > 0){
|
||||||
|
@ -1372,7 +1372,7 @@ function autoUrl(id){
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
var html = $("#"+id).text();
|
var html = $("#"+id).text();
|
||||||
html = html.replace(/((https?|ftp|news):\/\/)?([a-z]([a-z0-9\-]*[\.。])+([a-z]{3}|aero|arpa|biz|com|coop|edu|gov|info|int|jobs|mil|museum|name|nato|net|org|pro|travel)|(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))(\/[a-z0-9_\-\.~]+)*(\/([a-z0-9_\-\.]*)(\?[a-z0-9+_\-\.%=&]*)?)?(#[a-z][a-z0-9_]*)?/g,function(full) {
|
html = html.replace(/((https?|ftp|news):\/\/)?([a-z]([a-z0-9\-]*[\.。])+(aero|arpa|biz|com|coop|edu|gov|info|int|jobs|mil|museum|name|nato|net|org|pro|travel)|(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))(\/[a-z0-9_\-\.~]+)*(\/([a-z0-9_\-\.]*)(\?[a-z0-9+_\-\.%=&]*)?)?(#[a-z][a-z0-9_]*)?/g,function(full) {
|
||||||
//没有://的都加上http://
|
//没有://的都加上http://
|
||||||
var reStr = full;
|
var reStr = full;
|
||||||
if (full.length > 0){
|
if (full.length > 0){
|
||||||
|
|
|
@ -144,8 +144,6 @@ a.postTypeGrey:hover {color:#269ac9;}
|
||||||
.homepagePostDes {float:left; width:655px; margin-left:15px;}
|
.homepagePostDes {float:left; width:655px; margin-left:15px;}
|
||||||
.homepagePostTo {font-size:14px; color:#484848; margin-bottom:5px;}
|
.homepagePostTo {font-size:14px; color:#484848; margin-bottom:5px;}
|
||||||
.homepagePostTitle {font-size:14px; color:#484848; margin-bottom:5px; font-weight:bold;}
|
.homepagePostTitle {font-size:14px; color:#484848; margin-bottom:5px; font-weight:bold;}
|
||||||
.homepagePostTitle td,.homepagePostTitle tr {border: 1px solid; border-color: inherit;}
|
|
||||||
.homepagePostTitle a{color: #15bccf;}
|
|
||||||
.homepagePostSubmitContainer {height:25px; margin-top: 8px; margin-bottom: 5px;}
|
.homepagePostSubmitContainer {height:25px; margin-top: 8px; margin-bottom: 5px;}
|
||||||
.homepagePostSubmit {font-size:14px; color:#888888; border:1px solid #dddddd; background-color:#eaeaea; float:left; margin-right:20px; padding:0px 10px;}
|
.homepagePostSubmit {font-size:14px; color:#888888; border:1px solid #dddddd; background-color:#eaeaea; float:left; margin-right:20px; padding:0px 10px;}
|
||||||
.homepagePostSubmit:hover {background-color:#d8d8d8;}
|
.homepagePostSubmit:hover {background-color:#d8d8d8;}
|
||||||
|
|
|
@ -672,8 +672,6 @@ a.postTypeGrey:hover {color:#269ac9;}
|
||||||
.homepagePostDes {float:left; width:655px; margin-left:15px; overflow:hidden;}
|
.homepagePostDes {float:left; width:655px; margin-left:15px; overflow:hidden;}
|
||||||
.homepagePostTo {font-size:14px; color:#484848; margin-bottom:5px;}
|
.homepagePostTo {font-size:14px; color:#484848; margin-bottom:5px;}
|
||||||
.homepagePostTitle {font-size:14px; color:#484848; margin-bottom:5px; font-weight:bold;}
|
.homepagePostTitle {font-size:14px; color:#484848; margin-bottom:5px; font-weight:bold;}
|
||||||
.homepagePostTitle td,.homepagePostTitle tr {border: 1px solid; border-color: inherit;}
|
|
||||||
.homepagePostTitle a{color: #15bccf;}
|
|
||||||
.homepagePostSubmitContainer {height:25px; margin-top: 8px; margin-bottom: 5px;}
|
.homepagePostSubmitContainer {height:25px; margin-top: 8px; margin-bottom: 5px;}
|
||||||
.homepagePostSubmit {font-size:14px; color:#888888; border:1px solid #dddddd; background-color:#eaeaea; float:left; margin-right:20px; padding:0px 10px;}
|
.homepagePostSubmit {font-size:14px; color:#888888; border:1px solid #dddddd; background-color:#eaeaea; float:left; margin-right:20px; padding:0px 10px;}
|
||||||
.homepagePostSubmit:hover {background-color:#d8d8d8;}
|
.homepagePostSubmit:hover {background-color:#d8d8d8;}
|
||||||
|
|
Loading…
Reference in New Issue