Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Refix tree and fileslist
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Aug 25, 2016
1 parent 250b912 commit f3bee77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions core/src/plugins/gui.ajax/res/js/vendor/webfx/xtree.js
Expand Up @@ -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());
Expand All @@ -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});
}
}
}
Expand Down

0 comments on commit f3bee77

Please sign in to comment.