mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Manualbiome (#11216)
This commit is contained in:
@@ -55,33 +55,32 @@ function filterchanges(type){
|
||||
}
|
||||
*/
|
||||
function dropdowns() {
|
||||
var drops = $('div.drop');
|
||||
var indrops = $('div.indrop');
|
||||
if(drops.length!=indrops.length){
|
||||
alert("Some coder fucked up with dropdowns");
|
||||
}
|
||||
drops.each(function(index){
|
||||
$(this).toggleClass('closed');
|
||||
$(indrops[index]).hide();
|
||||
$(this).click(function(){
|
||||
$(this).toggleClass('closed');
|
||||
$(this).toggleClass('open');
|
||||
$(indrops[index]).toggle();
|
||||
});
|
||||
});
|
||||
var drops = $("div.drop");
|
||||
var indrops = $("div.indrop");
|
||||
if (drops.length != indrops.length) {
|
||||
alert("Some coder fucked up with dropdowns");
|
||||
}
|
||||
drops.each(function (index) {
|
||||
$(this).toggleClass("closed");
|
||||
$(indrops[index]).hide();
|
||||
$(this).click(function () {
|
||||
$(this).toggleClass("closed");
|
||||
$(this).toggleClass("open");
|
||||
$(indrops[index]).toggle();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function filterchanges(type){
|
||||
$('ul.changes li').each(function(){
|
||||
if(!type || $(this).hasClass(type)){
|
||||
$(this).show();
|
||||
}
|
||||
else {
|
||||
$(this).hide();
|
||||
}
|
||||
});
|
||||
function filterchanges(type) {
|
||||
$("ul.changes li").each(function () {
|
||||
if (!type || $(this).hasClass(type)) {
|
||||
$(this).show();
|
||||
} else {
|
||||
$(this).hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
dropdowns();
|
||||
});
|
||||
$(document).ready(function () {
|
||||
dropdowns();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user