Fix autofocus and some animations

This commit is contained in:
Nicolas A. Tonne
2015-05-06 14:31:13 +02:00
parent 6c60b47837
commit f5495dba43
4 changed files with 11 additions and 7 deletions

View File

@@ -49,6 +49,8 @@ function populate_channels(lists)
if(num>19)break;
}
document.getElementById("searches").innerHTML = output;
Materialize.showStaggeredList('#channels');
$("#search").focus();
}
String.prototype.capitalizeFirstLetter = function() {
@@ -75,8 +77,6 @@ $(document).ready(function (){
list_html = $("#channels").html();
$("#channels").empty();
$("#search").focus();
var socket = io.connect('http://'+window.location.hostname+':3000');
var playlists = [];
socket.emit('frontpage_lists');
@@ -86,8 +86,7 @@ $(document).ready(function (){
})
Materialize.showStaggeredList('#channels');
var pad = 0;
document.getElementById("zicon").addEventListener("click", function(){
pad+=10;
@@ -111,5 +110,6 @@ $(document).ready(function (){
}
}
}
});