Explorar o código

显示二次衍生语法信息

visuddhinanda %!s(int64=4) %!d(string=hai) anos
pai
achega
57d7d4b964
Modificáronse 2 ficheiros con 7 adicións e 0 borrados
  1. 2 0
      app/studio/editor.php
  2. 5 0
      app/studio/js/render.js

+ 2 - 0
app/studio/editor.php

@@ -789,6 +789,8 @@ foreach($plugin_list as $info){
 								<a onclick="edit_parent_grammar_changed('.pp.')"><?php echo $_local->gui->pp; ?></a>
 								<a onclick="edit_parent_grammar_changed('.prp.')"><?php echo $_local->gui->prp; ?></a>				
 								<a onclick="edit_parent_grammar_changed('.fpp.')"><?php echo $_local->gui->fpp; ?></a>
+								<a onclick="edit_parent_grammar_changed('.caus.')"><?php echo $_local->gui->caus; ?></a>
+								<a onclick="edit_parent_grammar_changed('.pass.')"><?php echo $_local->gui->pass; ?></a>
 							</div>
 						</div>
 						<input type="text" id="id_text_prt_prt" class="input_bar" onkeydown="match_key(this)" onkeyup="unicode_key(this)" />

+ 5 - 0
app/studio/js/render.js

@@ -2477,6 +2477,11 @@ function renderWordDetailByElement_edit_a(xmlElement) {
 		_txtOutDetail += "</div>";
 		_txtOutDetail += "</div>";
 
+		if(sParentGrammar && sParentGrammar!="" && sParentGrammar!=" "){
+			_txtOutDetail += "<span class='cell' style='outline: unset;background-color: wheat;' title='"+sParent2+"'>" + getLocalGrammaStr(sParentGrammar) + "</span>";
+		}
+		
+
 		//连读词按钮
 		if (mType == ".un." || mType == ".comp.") {
 			nextElement = com_get_nextsibling(xmlElement);