1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-29 11:05:44 +00:00
Lidarr/NzbDrone.Web/Scripts/jquery.simpledropdown.js
markus101 764f67f8e8 JquerySimpleDropdown menu added, not sure of full usage yet.
Fixed SettingsController for Quality Config.
2011-02-03 10:28:14 -08:00

32 lines
782 B
JavaScript

/*
Name: jQuery Simple Drop Down Plugin
Author: Etienne Fardet
Version: 1.2
*/
(function($){
$.simpledropdown = function(selector) {
$(selector).children("ul").addClass("dropdown");
$("ul.dropdown>li:first-child").addClass("selected");
$("ul.dropdown>li").not(".dropdown>li:first-child").addClass("drop");
$("ul.dropdown").click(function() {
var subitems = $(this).find(".drop ul li");
var selecteditem = $(this).find(".selected");
subitems.slideToggle("fast", function() {
subitems.click(function() {
var selection = $(this).text();
selecteditem.text(selection).fadeOut(5, function() {
if (jQuery.browser.msie) {
$(this).fadeIn(100);
} else {
$(this).fadeIn(400);
}
});
});
});
});
};
})(jQuery);