1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 02:10:46 +02:00

media-picker work. Issue #6 Removed '...' from LAN_SELECT and added manually where appropriate.

This commit is contained in:
Cameron
2018-07-25 12:29:52 -07:00
parent 74f19820b0
commit 9b2772b7ac
8 changed files with 57 additions and 13 deletions

View File

@@ -787,8 +787,24 @@ $(document).ready(function()
var currentIndex = $(this).find('.active').index();
var text = (currentIndex + 1);
var id = $(this).attr('id') + '-index'; // admin-ui-carousel-index etc.
$('#'+id).text(text);
// this takes commented content for each carousel slide and enables it, one slide at a time as we scroll.
$(this).find('.item').each(function(index, node)
{
var content = $(this).contents();
var item = content[0];
if(item.nodeType === 8) // commented code @see e_media::browserCarousel() using '<!--'
{
$(item).replaceWith(item.nodeValue);
return false;
}
});
});