From 28dcae05d116d942e6c0aea60695c08a5c08c35d Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sat, 1 Oct 2016 03:52:38 +0300 Subject: [PATCH] Toggle grid before loading may fail This is a backport of https://github.com/tomster/halfnarp/commit/749bee873314e2149a46fe99b14f65a576e7538f --- app/assets/javascripts/halfnarp.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/halfnarp.js b/app/assets/javascripts/halfnarp.js index f81ee46..07619fa 100644 --- a/app/assets/javascripts/halfnarp.js +++ b/app/assets/javascripts/halfnarp.js @@ -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 ) {