{"id":1027132,"date":"2015-11-17T12:19:25","date_gmt":"2015-11-17T20:19:25","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-javascript-issue\/"},"modified":"2015-12-10T15:12:51","modified_gmt":"2015-12-10T23:12:51","slug":"mobile-month-view-javascript-issue","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-javascript-issue\/","title":{"rendered":"Mobile Month View &#8211; Javascript Issue"},"content":{"rendered":"<p>I&#8217;ve gone through the various steps on the Testing for Conflicts site and have noticed that the Javascript used in the mobile month view is doing a check that is setting the <code>date_name<\/code> variable to blank resulting in the output rendering as &#8220;Events For  &#8221;<\/p>\n<p><a href=\"https:\/\/cloudup.com\/cIatoOVLQtP\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cldup.com\/w43vyJni9E-900x900.png\" alt=\"Screen Shot 2015 11 17 at 3 11 56 PM\" width=\"389\" height=\"207\" \/><\/a><\/p>\n<p>Upon investigation and debugging lots of Javascript, I&#8217;ve tracked the problem down to lines 158-162 of tribe-events-ajax-calendar.js<\/p>\n<pre><code>\/\/ Backwards compatibility\r\n \/\/ @todo &quot;Check if we can remove this check&quot;\r\n    if ( data.has_events ) {\r\n        data.date_name = &#039;&#039;;\r\n    }<\/code><\/pre>\n<p>This renders into the minified file as well. If I comment out the <code>data.date_name = &#039;&#039;;<\/code> line, all starts working as normal. I&#8217;d appreciate any insight you can give or maybe this is a bug that got leftover. Happy to help in anyway I can.<\/p>\n","protected":false},"template":"","class_list":["post-1027132","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Mobile Month View - Javascript Issue -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-javascript-issue\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mobile Month View - Javascript Issue -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;ve gone through the various steps on the Testing for Conflicts site and have noticed that the Javascript used in the mobile month view is doing a check that is setting the date_name variable to blank resulting in the output rendering as &#8220;Events For &#8221; Upon investigation and debugging lots of Javascript, I&#8217;ve tracked the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-javascript-issue\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-12-10T23:12:51+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-javascript-issue\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-javascript-issue\/\",\"name\":\"Mobile Month View - Javascript Issue -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-11-17T20:19:25+00:00\",\"dateModified\":\"2015-12-10T23:12:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-javascript-issue\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-javascript-issue\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-javascript-issue\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Mobile Month View &#8211; Javascript Issue\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mobile Month View - Javascript Issue -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-javascript-issue\/","og_locale":"en_US","og_type":"article","og_title":"Mobile Month View - Javascript Issue -","og_description":"I&#8217;ve gone through the various steps on the Testing for Conflicts site and have noticed that the Javascript used in the mobile month view is doing a check that is setting the date_name variable to blank resulting in the output rendering as &#8220;Events For &#8221; Upon investigation and debugging lots of Javascript, I&#8217;ve tracked the [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-javascript-issue\/","article_modified_time":"2015-12-10T23:12:51+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-javascript-issue\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-javascript-issue\/","name":"Mobile Month View - Javascript Issue -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-11-17T20:19:25+00:00","dateModified":"2015-12-10T23:12:51+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-javascript-issue\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-javascript-issue\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mobile-month-view-javascript-issue\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Mobile Month View &#8211; Javascript Issue"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1027132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1027132\/revisions"}],"predecessor-version":[{"id":1027225,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1027132\/revisions\/1027225"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1027132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}