Skip to content

Commit

Permalink
bugfix: wrong position of "parent" item in IE #124
Browse files Browse the repository at this point in the history
  • Loading branch information
psolom committed Mar 12, 2017
1 parent 6e5efa7 commit ef0f002
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/filemanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -2302,9 +2302,10 @@ $.richFilemanagerPlugin = function(element, pluginOptions)
};

items.sort(function(a, b) {
if(a.rdo.type === 'parent' || b.rdo.type === 'parent') {
return -1;
}
// commented to support IE sorting algorithm; parent item should be a first item
if(a.rdo.type === 'parent'/* || b.rdo.type === 'parent'*/) {
return -1;
}

var sortReturnNumber,
aa = getSortSubject(a),
Expand Down

0 comments on commit ef0f002

Please sign in to comment.