diff --git a/wp-content/themes/tn-2014/js/app.js b/wp-content/themes/tn-2014/js/app.js index 047e84a..9bc4ec4 100644 --- a/wp-content/themes/tn-2014/js/app.js +++ b/wp-content/themes/tn-2014/js/app.js @@ -5,6 +5,9 @@ var query_params = { function format_posts(posts) { var html = ''; + if(posts.length === 0) { + html = '
Ingen planlagte arrangementer :\'(
'; + } for(var i=0; i< posts.length; i++) { var post = posts[i]; html += '