- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
// create folder element
var itm = $('<li class="DocListItem TypeFolder hover" style="display:none;">
<div class="ItemInfo"><span class="itmFolder">Папка</span></div>
<a rel="'+result.data.id+'" class="ItemLink" href="'+$('#currentFolderId').attr('href')+result.data.name+'/">'+result.data.name+'</a>
</li>');
// bind handlers
itm = DocumentsListItemHoverBind(itm.click(DocumentsListItemClick).dblclick(OpenSelectedObject)).find('.ItemLink:first').click(OpenSelectedObject).parent();
// display
itm.insertAfter('#documentsList .UpLevelItem:first').fadeIn('slow');