Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 158... Línea 158...
158
            $('#' + container.attr('aria-labelledby')).text(string);
158
            $('#' + container.attr('aria-labelledby')).text(string);
159
        });
159
        });
Línea 160... Línea 160...
160
 
160
 
161
        if (count > 0) {
161
        if (count > 0) {
-
 
162
            container.removeClass('hidden');
-
 
163
        } else {
162
            container.removeClass('hidden');
164
            container.addClass('hidden');
163
        }
165
        }
Línea 164... Línea 166...
164
    };
166
    };
165
 
167
 
Línea 444... Línea 446...
444
    var decrementTotalUnreadConversationCount = function(root) {
446
    var decrementTotalUnreadConversationCount = function(root) {
445
        if (loadedUnreadCounts) {
447
        if (loadedUnreadCounts) {
446
            var element = getTotalUnreadConversationCountElement(root);
448
            var element = getTotalUnreadConversationCountElement(root);
447
            var count = parseInt(element.text());
449
            var count = parseInt(element.text());
448
            count = count - 1;
450
            count = count - 1;
449
            element.text(count);
451
            // Re-render the unread count.
450
 
-
 
451
            if (count < 1) {
-
 
452
                element.addClass('hidden');
452
            renderUnreadCount(root, count);
453
            }
-
 
454
        }
453
        }
455
    };
454
    };
Línea 456... Línea 455...
456
 
455
 
457
    /**
456
    /**
Línea 605... Línea 604...
605
            }
604
            }
Línea 606... Línea 605...
606
 
605
 
607
            return true;
606
            return true;
Línea 608... Línea -...
608
        };
-
 
609
 
-
 
610
        // Set the minimum height of the section to the height of the toggle. This
-
 
611
        // smooths out the collapse animation.
-
 
Línea 612... Línea 607...
612
        var toggle = root.find(SELECTORS.TOGGLE);
607
        };
613
        root.css('min-height', toggle.outerHeight());
608
 
614
 
609
 
615
        root.on('show.bs.collapse', function() {
610
        root[0].addEventListener('show.bs.collapse', function() {
616
            setExpanded(root);
611
            setExpanded(root);
617
            LazyLoadList.show(listRoot, loadCallback, function(contentContainer, conversations, userId) {
612
            LazyLoadList.show(listRoot, loadCallback, function(contentContainer, conversations, userId) {
Línea 622... Línea 617...
622
                    })
617
                    })
623
                    .catch(Notification.exception);
618
                    .catch(Notification.exception);
624
            });
619
            });
625
        });
620
        });
Línea 626... Línea 621...
626
 
621
 
627
        root.on('hidden.bs.collapse', function() {
622
        root[0].addEventListener('hidden.bs.collapse', function() {
628
            setCollapsed(root);
623
            setCollapsed(root);
Línea 629... Línea 624...
629
        });
624
        });
630
 
625