CoreFiles by mySites.guru
snooze.js31 lines, 727 bytes, from Joomla_3.10.0-rc2-Release_Candidate-Full_Package.zip
Raw History Compare with 3.10.0-rc1
md5
cb65c1105bc568533f8ba7ae0ecbab29
sha1
dd01460523c596b5840283a4efeb0df47e5b3b93
sha256
c0fba76085a8a8221317ddea454415467bb4443e463379c4a65ed66890f3a2db
/**
 * @copyright   (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

 (function ($)
 {
	 $(document).ready(function ()
	 {
		 var ajaxData = {
			 'option' : 'com_ajax',
			 'group'  : 'quickicon',
			 'plugin' : 'SnoozeEOS',
			 'format' : 'json'
		 }

		 $('#system-message-container').on('click', '.eosnotify-snooze-btn', function(e)
		 {
			 var button=$(this);
			 $.getJSON('index.php', ajaxData, function(response)
			 {
				 if (response.success)
				 {
					 button.closest('.alert').find('[data-dismiss="alert"]').click();
				 }
			 }
		 );
		 e.preventDefault();
		 });
	 });
 })(jQuery);

The same content is in 2 releases, Joomla 3.10.0-rc1 to 3.10.0-rc2. See them all, or every version of this file.