CoreFiles by mySites.guru
snooze.js31 lines, 696 bytes, from Joomla_3.10.8-Stable-Full_Package.zip
Raw History Compare with 3.10.7
md5
52bece2f511f2421ebde2dd3561e48f8
sha1
6131e65dfa7d996bde7a0deb4801008062d5fd0b
sha256
14f0a37363c323b4f79a36606fc4a1b921ec33f4f7540b56a5c75d4e779b055d
/**
 * @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 23 releases, Joomla 3.10.0 to 3.10.12. See them all, or every version of this file.