Toggle grid before loading may fail

This is a backport of
749bee8733
This commit is contained in:
Petko Bordjukov 2016-10-01 03:52:38 +03:00
parent 36f973fa1b
commit 28dcae05d1
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@
window.all_events = new Object();
var myuid, mypid, newfriend = new Object();
/* Add poor man's type ahead filtering */
$.extend($.expr[':'], {
'containsi': function(elem, i, match, array)
{
@ -184,6 +185,9 @@
} catch(err) {
}
/* Initially display as list */
toggle_grid(true);
/* Fetch list of lectures to display */
$.getJSON( halfnarpAPI, { locale: $('html').attr('lang') })
.done(function( data ) {