mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
JquerySimpleDropdown menu added, not sure of full usage yet.
Fixed SettingsController for Quality Config.
This commit is contained in:
parent
9f0e512f5f
commit
764f67f8e8
11 changed files with 119 additions and 51 deletions
32
NzbDrone.Web/Scripts/jquery.simpledropdown.js
Normal file
32
NzbDrone.Web/Scripts/jquery.simpledropdown.js
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
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);
|
Loading…
Add table
Add a link
Reference in a new issue