<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Date Picker close when clicked outside of the datepicker]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7921</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7921&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Date Picker close when clicked outside of the datepicker.]]></description>
		<lastBuildDate>Tue, 16 Jul 2019 03:53:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Date Picker close when clicked outside of the datepicker]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35453#p35453</link>
			<description><![CDATA[<p>Bootstrap implementation may have <a href="https://bootstrap-datepicker.readthedocs.io/en/latest/">other working scripts for datepicker</a>.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 16 Jul 2019 03:53:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35453#p35453</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date Picker close when clicked outside of the datepicker]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35442#p35442</link>
			<description><![CDATA[<p>Hello kvvaradha,<br />I&#039;m working on some bootstrap theme(s), where I&#039;m faced with below issue;</p><p>-&gt; the theme works fine, but the datepicker creates issues ;<br />&nbsp; - clicked for any forms having the date picker ; the top nav bar comes down ,<br />&nbsp; - when want to select date ; the date picker is out from its place - on upper of top navbar, <br />&nbsp; -&nbsp; AND&nbsp; all the issues are solved and the theme is re-positioned well&nbsp; , once the date is selected from the date picker...</p><p>Any solution ?...</p><p>Thanks in advance...<br />A.P</p>]]></description>
			<author><![CDATA[null@example.com (Ajmal)]]></author>
			<pubDate>Mon, 15 Jul 2019 06:20:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35442#p35442</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date Picker close when clicked outside of the datepicker]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35441#p35441</link>
			<description><![CDATA[<div class="quotebox"><cite>kvvaradha wrote:</cite><blockquote><p>We normally seen other date pickers,which actually close when we click outside of the date picker. </p><p>So i thought to implement the same here in our FA with js. So just tried this and it works fine. Hope it will be good for users, if you commit it to core.</p><div class="codebox"><pre><code>window.addEventListener(&#039;click&#039;, function(e){   
  if (document.getElementById(&#039;CC&#039;).contains(e.target)){} else{
   if (cC.visible()) {
    cC.hide();
      }
  }
});</code></pre></div><p>Append this code to date_picker.js file,which actually created from ui_view.inc</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (Ajmal)]]></author>
			<pubDate>Mon, 15 Jul 2019 06:16:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35441#p35441</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date Picker close when clicked outside of the datepicker]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33858#p33858</link>
			<description><![CDATA[<p>That&#039;s nice to see.&nbsp; </p><p>@apmuthu,actually if you open another date picker, its outside of current one. So the already opened date picker will be closed before opens the new one. </p><p>I guess that wont be much difficult for the users to work on.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sat, 05 Jan 2019 10:57:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33858#p33858</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date Picker close when clicked outside of the datepicker]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33856#p33856</link>
			<description><![CDATA[<p>Hello Guys,</p><p>This has been committed to stable repo. Thanks @kvvaradha and @apmuthu.</p><p>The fixed file can be downloaded <a href="https://sourceforge.net/p/frontaccounting/git/ci/master/tree/includes/ui/ui_view.inc">here</a>.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sat, 05 Jan 2019 09:48:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33856#p33856</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date Picker close when clicked outside of the datepicker]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33850#p33850</link>
			<description><![CDATA[<p>There is a &quot;Back&quot; link on the calendar display that does it but your method may be useful too - hope it will not clash when multiple date fields are on the same form.</p><p>@joe: Attached is the code change in <strong>includes/ui/ui_view.inc</strong> needed to have the <em>date_picker.js</em> recreated on js cache purge.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 05 Jan 2019 06:34:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33850#p33850</guid>
		</item>
		<item>
			<title><![CDATA[Date Picker close when clicked outside of the datepicker]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33842#p33842</link>
			<description><![CDATA[<p>We normally seen other date pickers,which actually close when we click outside of the date picker. </p><p>So i thought to implement the same here in our FA with js. So just tried this and it works fine. Hope it will be good for users, if you commit it to core.</p><div class="codebox"><pre><code>window.addEventListener(&#039;click&#039;, function(e){   
  if (document.getElementById(&#039;CC&#039;).contains(e.target)){} else{
   if (cC.visible()) {
    cC.hide();
      }
  }
});</code></pre></div><p>Append this code to date_picker.js file,which actually created from ui_view.inc</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Fri, 04 Jan 2019 18:43:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33842#p33842</guid>
		</item>
	</channel>
</rss>
