Permalink
Browse files

Refix tree and fileslist

  • Loading branch information...
1 parent 250b912 commit f3bee77c210487615f1f6c186c47d3010e9312d7 @cdujeu cdujeu committed Aug 25, 2016
@@ -2284,7 +2284,7 @@ Class.create("FilesList", SelectableElements, {
elList.each(function(element){
try{
- var image_element = element.IMAGE_ELEMENT || element.down('img');
+ var image_element = element.IMAGE_ELEMENT /*|| element.down('img')*/;
var label_element = element.LABEL_ELEMENT || element.down('.thumbLabel');
}catch(e){
return;
@@ -221,6 +221,7 @@ WebFXTreeAbstractNode.prototype.add = function (node, bNoIdent) {
}
$(this.id + '-cont').insert(node.toString());
var addedBloc = $(this.id + '-cont').down('#' + node.id);
+ var addedCont = $(this.id + '-cont').down('#' + node.id + '-cont');
if(this.childNodes.length > 2 && node.ajxpNode){
var sorted = Object.keys(this.childrenPathes).sort(function(a,b){
return a.toLowerCase().localeCompare(b.toLowerCase());
@@ -230,6 +231,7 @@ WebFXTreeAbstractNode.prototype.add = function (node, bNoIdent) {
var nextId = this.childrenPathes[sorted[sortedIndex + 1]];
if($(this.id + '-cont').down('#' + nextId)){
$(this.id + '-cont').down('#' + nextId).insert({before: addedBloc});
+ if(addedCont) addedBloc.insert({after: addedCont});
}
}
}

0 comments on commit f3bee77

Please sign in to comment.