fixed js for bootswatch menus

This commit is contained in:
Massimo Di Pierro
2012-05-25 15:02:30 -05:00
parent 3a233f6cfa
commit 28dffafd3d
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-05-25 14:51:51) dev
Version 2.00.0 (2012-05-25 15:01:36) dev
+4 -4
View File
@@ -63,12 +63,12 @@
<script>
jQuery(function(){
jQuery('.nav>li>a').each(function(){
if(jQuery(this).parent().find('ul'))
jQuery(this).attr({'class':'dropdown-toggle','data-toggle':'dropdown'}).append('<b class="caret"><b>');
if(jQuery(this).parent().find('ul').length)
jQuery(this).attr({'class':'dropdown-toggle','data-toggle':'dropdown'}).append('<b class="caret"></b>');
});
jQuery('.nav li').each(function(){
if(jQuery(this).find('ul'))
var a=jQuery(this).children('a').before('<i class="icon-chevron-right"></i>');
if(jQuery(this).find('ul').length)
var a=jQuery(this).children('a').contents().before('<i class="icon-chevron-right"></i>');
});
});
</script>