瀏覽代碼

add json array[object] highlight

pscj 9 年之前
父節點
當前提交
d01dd6b765
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      Public/js/item/show_single_page.js
  2. 1 1
      Public/js/page/edit.js
  3. 1 1
      Public/js/page/index.js

+ 1 - 1
Public/js/item/show_single_page.js

@@ -78,7 +78,7 @@ $(function(){
 
     $("table thead tr").css({"background-color":"#08c","color":"#fff"});
     $("table tr").each(function(){
-    if($(this).find("td").eq(1).html()=="object")
+    if($(this).find("td").eq(1).html()=="object" || $(this).find("td").eq(1).html()=="array[object]")
     {
       $(this).css({"background-color":"#99CC99","color":"#000"});
     }

+ 1 - 1
Public/js/page/edit.js

@@ -286,7 +286,7 @@ function dump(arr,level) {
 		$(".editormd-preview-container table thead tr").css({"background-color":"#08c","color":"#fff"});
     $(".editormd-preview-container table tr").eq(0).css({"background-color":"#08c","color":"#fff"});
 		$(".editormd-preview-container table tr").each(function(){
-			if($(this).find("td").eq(1).html()=="object")
+			if($(this).find("td").eq(1).html()=="object" || $(this).find("td").eq(1).html()=="array[object]")
 			{
 				$(this).css({"background-color":"#99CC99","color":"#000"});
 			}

+ 1 - 1
Public/js/page/index.js

@@ -27,7 +27,7 @@ $(function(){
 
     $("table thead tr").css({"background-color":"#08c","color":"#fff"});
     $("table tr").each(function(){
-    if($(this).find("td").eq(1).html()=="object")
+    if($(this).find("td").eq(1).html()=="object" || $(this).find("td").eq(1).html()=="array[object]")
     {
       $(this).css({"background-color":"#99CC99","color":"#000"});
     }