From 205f5486bbcd9d8cded64899f00410ef5cc8807d Mon Sep 17 00:00:00 2001 From: llj Date: Thu, 2 Jul 2015 17:14:31 +0800 Subject: [PATCH 1/3] [common.js] modified for IE8 --- static/scripts/common.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/static/scripts/common.js b/static/scripts/common.js index 92ee71cfdf..db79b82e7c 100644 --- a/static/scripts/common.js +++ b/static/scripts/common.js @@ -303,9 +303,19 @@ define([ }, encodePath: function(path) { + // IE8 does not support 'map()' + /* return path.split('/').map(function(e) { return encodeURIComponent(e); }).join('/'); + */ + + var path_arr = path.split('/'), + path_arr_ = []; + for (var i = 0, len = path_arr.length; i < len; i++) { + path_arr_.push(encodeURIComponent(path_arr[i])); + } + return path_arr_.join('/'); }, closePopup: function(e, popup, popup_switch) { From 63a975bf3d53ba02872134a4821756ed81761b8b Mon Sep 17 00:00:00 2001 From: llj Date: Thu, 2 Jul 2015 17:38:36 +0800 Subject: [PATCH 2/3] [dir.js] modified for IE8 --- static/scripts/app/views/dir.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/scripts/app/views/dir.js b/static/scripts/app/views/dir.js index 02a2d16d6b..6137e823dd 100644 --- a/static/scripts/app/views/dir.js +++ b/static/scripts/app/views/dir.js @@ -250,7 +250,7 @@ define([ }; var path_list = path.substr(1).split('/'); - var path_list_encoded = path_list.map(function(e) { return encodeURIComponent(e); }); + var path_list_encoded = Common.encodePath(path.substr(1)).split('/'); if (path != '/') { $.extend(obj, { path_list: path_list, From ec65bb0b31f932120dfbf440446669d6b41cbce4 Mon Sep 17 00:00:00 2001 From: llj Date: Tue, 7 Jul 2015 14:32:59 +0800 Subject: [PATCH 3/3] [IE] modified shared_upload_link page for IE --- seahub/templates/view_shared_upload_link.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/seahub/templates/view_shared_upload_link.html b/seahub/templates/view_shared_upload_link.html index a7b9682dbd..720e4cf90a 100644 --- a/seahub/templates/view_shared_upload_link.html +++ b/seahub/templates/view_shared_upload_link.html @@ -25,7 +25,7 @@ {% endif %} - @@ -57,6 +57,15 @@ {% if not no_quota %} {% upload_js %} + {% endif %}