From 368a3ce1fa89ee43f4ee70da266df979f05f2767 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Fri, 13 Mar 2015 15:40:19 +0800
Subject: [PATCH 01/22] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE?=
=?UTF-8?q?=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA=E4=B8=8D?=
=?UTF-8?q?=E6=AD=A3=E7=A1=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/projects/show.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb
index cd6ac2af2..f38595302 100644
--- a/app/views/projects/show.html.erb
+++ b/app/views/projects/show.html.erb
@@ -43,7 +43,7 @@
]*data-ke-noscript-attr="([^"]*)"[^>]*>([\s\S]*?)<\/div>/ig, function(full, attr, code) {
+ return '
';
+ })
+ .replace(/(<[^>]*)data-ke-src="([^"]*)"([^>]*>)/ig, function(full, start, src, end) {
+ full = full.replace(/(\s+(?:href|src)=")[^"]*(")/i, function($0, $1, $2) {
+ return $1 + _unescape(src) + $2;
+ });
+ full = full.replace(/\s+data-ke-src="[^"]*"/i, '');
+ return full;
+ })
+ .replace(/(<[^>]+\s)data-ke-(on\w+="[^"]*"[^>]*>)/ig, function(full, start, end) {
+ return start + end;
+ });
+ });
+ self.beforeSetHtml(function(html) {
+ if (_IE && _V <= 8) {
+ html = html.replace(/
]*>|<(select|button)[^>]*>[\s\S]*?<\/\1>/ig, function(full) {
+ var attrs = _getAttrList(full);
+ var styles = _getCssList(attrs.style || '');
+ if (styles.display == 'none') {
+ return '
';
+ }
+ return full;
+ });
+ }
+ return html.replace(/