Difference between revisions of "Template:Team:Bielefeld-CeBiTec/JS"

(fixed moving small buttons complete)
(final new navbar fix)
Line 414: Line 414:
 
 
 
$('.sub-navbar-item').each(function(i, obj) {
 
$('.sub-navbar-item').each(function(i, obj) {
if (obj == $clickItem) {
 
$noEffect = 1;
 
}
 
 
if ($($clickItem).hasClass("sub-navbar-item")) {
 
if ($($clickItem).hasClass("sub-navbar-item")) {
 
if ($(obj).is(":visible")) {
 
if ($(obj).is(":visible")) {
 
if ($(obj).hasClass("small")) {
 
if ($(obj).hasClass("small")) {
 +
if (obj == $clickItem) {
 +
$noEffect = 1;
 +
}
 
if ($totalWidth == 0) {
 
if ($totalWidth == 0) {
 
$leftItem = obj;
 
$leftItem = obj;
Line 428: Line 428:
 
} else {
 
} else {
 
if ($(obj).is(":visible")) {
 
if ($(obj).is(":visible")) {
 +
if (obj == $clickItem) {
 +
$noEffect = 1;
 +
}
 
if ($totalWidth == 0) {
 
if ($totalWidth == 0) {
 
$leftItem = obj;
 
$leftItem = obj;

Revision as of 15:14, 23 September 2017