bhikkhu-kosalla-china пре 4 година
родитељ
комит
e4b1fb49b6
3 измењених фајлова са 5 додато и 3 уклоњено
  1. 3 1
      app/article/article.js
  2. 1 1
      app/article/index.php
  3. 1 1
      app/term/popup_note.css

+ 3 - 1
app/article/article.js

@@ -49,8 +49,10 @@ function articel_load(id, collection_id) {
 						result.content = result.content.replace(/[A-z]*.wikipali.org/g,WWW_DOMAIN_NAME);
 
 						$("#contents").html(note_init(result.content,"",result.owner,result.lang));
-						note_refresh_new();
+						//处理<code>标签作为气泡注释
+						popup_init();
 						guide_init();
+						note_refresh_new();
 					}
 				} catch (e) {
 					console.error(e);

+ 1 - 1
app/article/index.php

@@ -343,7 +343,7 @@ function set_toc_visible(isVisible){
 	<div id="contents_view">
 		<div id="contents_div">
 			<div id="summary"></div>
-			<div id="contents" class="<?php echo $contentClass;?>">
+			<div id="contents" class="content_inner <?php echo $contentClass;?>">
 				<?php echo $_local->gui->loading; ?>...
 			</div>
 			<div id="contents_foot">

+ 1 - 1
app/term/popup_note.css

@@ -1,4 +1,4 @@
-.tran_sent code ,.sent_tran  code {
+.tran_sent code ,.sent_tran ,.content_inner  code {
 	position: relative;
 	display: inline-block;
 	width: auto;