1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +00:00

Merge pull request #695 from haiwen/IE8

Ie8
This commit is contained in:
Daniel Pan
2015-07-09 11:13:14 +08:00
3 changed files with 22 additions and 3 deletions

View File

@@ -302,9 +302,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) {