1. nakamura
  2. tai

Commits

nakamura  committed 8f3ac0a

chat.js: rename ChannelListView.scrollIntoViewIfNeeded

  • Participants
  • Parent commits 3028a4c
  • Branches default

Comments (0)

Files changed (1)

File tai/service/static/js/chat.js

View file
             selected.removeClass('selected');
             next.addClass('selected');
 
-            this.scrollIntoViewIfNeeded(next[0]);
+            this.scrollChannelIntoViewIfNeeded(next[0]);
         }
     },
 
             selected.removeClass('selected');
             prev.addClass('selected');
 
-            this.scrollIntoViewIfNeeded(prev[0]);
+            this.scrollChannelIntoViewIfNeeded(prev[0]);
         }
     },
 
-    scrollIntoViewIfNeeded: function(elem) {
+    scrollChannelIntoViewIfNeeded: function(elem) {
         var parent = $('.tab-content')[0];
         var overTop = elem.offsetTop - parent.offsetTop < parent.scrollTop;
         var overBottom = (elem.offsetTop - parent.offsetTop + elem.clientHeight) > (parent.scrollTop + parent.clientHeight);