From 0ff586a1cafd68728458a323fa291aeadb182cd0 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 3 May 2013 21:46:06 -0500 Subject: [PATCH] removed file that should not be there, thanks Niphlod --- VERSION | 2 +- .../examples/static/js/web2py_bootstrap.j | 35 ------------------- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 applications/examples/static/js/web2py_bootstrap.j diff --git a/VERSION b/VERSION index 8ece30a9..54d715d3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.6-stable+timestamp.2013.05.03.21.41.37 +Version 2.4.6-stable+timestamp.2013.05.03.21.45.11 diff --git a/applications/examples/static/js/web2py_bootstrap.j b/applications/examples/static/js/web2py_bootstrap.j deleted file mode 100644 index 0c94fd98..00000000 --- a/applications/examples/static/js/web2py_bootstrap.j +++ /dev/null @@ -1,35 +0,0 @@ -// this code improves bootstrap menus and adds dropdown support -jQuery(function(){ - jQuery('.nav>li>a').each(function(){ - if(jQuery(this).parent().find('ul').length) - jQuery(this).attr({'class':'dropdown-toggle','data-toggle':'dropdown'}).append(''); - }); - jQuery('.nav li li').each(function(){ - if(jQuery(this).find('ul').length) - jQuery(this).addClass('dropdown-submenu'); - }); - function adjust_height_of_collapsed_nav() { - var cn = jQuery('div.collapse'); - if (cn.get(0)) { - var cnh = cn.get(0).style.height; - if (cnh>'0px'){ - cn.css('height','auto'); - } - } - } - function hoverMenu(){ - jQuery('ul.nav a.dropdown-toggle').parent().hover(function(){ - adjust_height_of_collapsed_nav(); - mi = jQuery(this).addClass('open'); - mi.children('.dropdown-menu').stop(true, true).delay(200).fadeIn(400); - }, function(){ - mi = jQuery(this); - mi.children('.dropdown-menu').stop(true, true).delay(200).fadeOut(function(){mi.removeClass('open')}); - }); - } - hoverMenu(); // first page load - jQuery(window).resize(hoverMenu); // on resize event - jQuery('ul.nav li.dropdown a').click(function(){window.location=jQuery(this).attr('href');}); - // make all buttons bootstrap buttons - jQuery('button, form input[type="submit"], form input[type="button"]').addClass('btn'); -}); \ No newline at end of file