diff --git a/demo/index.html b/demo/index.html index 1ea35ccf..9d155952 100644 --- a/demo/index.html +++ b/demo/index.html @@ -333,6 +333,11 @@ Mini button

+

Floating action buttons

+

+ +

+
@@ -1299,10 +1304,15 @@ (function(){ var $button = $("
< >
").click(function(){ - var html = $(this).parent().html(); - html = cleanSource(html); - $("#source-modal pre").text(html); - $("#source-modal").modal(); + var index = $('.bs-component').index( $(this).parent() ); + console.log(index); + $.get(window.location.href, function(data){ + var html = $(data).find('.bs-component').eq(index).html(); + html = cleanSource(html); + $("#source-modal pre").text(html); + $("#source-modal").modal(); + }) + }); $('.bs-component [data-toggle="popover"]').popover();