瀏覽代碼

修复代码美化工具双击导致白屏的bug

Alien 11 年之前
父節點
當前提交
5aa0ad0bdb
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      chrome/manifest.json
  2. 1 1
      chrome/online.manifest.json
  3. 2 2
      chrome/static/js/codebeautify/syntax-highlighter.js

+ 1 - 1
chrome/manifest.json

@@ -1,6 +1,6 @@
 { 
 { 
 	"name": "WEB前端助手(FeHelper)", 
 	"name": "WEB前端助手(FeHelper)", 
-	"version": "4.5",
+	"version": "4.6",
     "manifest_version": 2,
     "manifest_version": 2,
 	 
 	 
 	"default_locale": "zh_CN", 
 	"default_locale": "zh_CN", 

+ 1 - 1
chrome/online.manifest.json

@@ -1,6 +1,6 @@
 {
 {
     "name": "WEB前端助手(FeHelper)",
     "name": "WEB前端助手(FeHelper)",
-    "version": "4.5",
+    "version": "4.6",
     "manifest_version": 2,
     "manifest_version": 2,
 
 
     "default_locale": "zh_CN",
     "default_locale": "zh_CN",

+ 2 - 2
chrome/static/js/codebeautify/syntax-highlighter.js

@@ -2318,8 +2318,8 @@ sh.Highlighter.prototype = {
 		if (this.getParam('toolbar'))
 		if (this.getParam('toolbar'))
 			attachEvent(findElement(div, '.toolbar'), 'click', sh.toolbar.handler);
 			attachEvent(findElement(div, '.toolbar'), 'click', sh.toolbar.handler);
 		
 		
-		if (this.getParam('quick-code'))
-			attachEvent(findElement(div, '.code'), 'dblclick', quickCodeHandler);
+//		if (this.getParam('quick-code'))
+//			attachEvent(findElement(div, '.code'), 'dblclick', quickCodeHandler);
 		
 		
 		return div;
 		return div;
 	},
 	},