CoreFiles by mySites.guru
extensionupdatecheck.js35 lines, 1,362 bytes, from Joomla_3.1.0-Stable-Full_Package.zip
Raw History Compare with 3.0.4
md5
e0536ff842ffe8c98d5c57a44cd6bb37
sha1
2dfbe3264f19c77cd9d1738e9580ba4adb3f85ae
sha256
6fdfbe964cf2a480077749013005369df41ad7a89d82f8acf58253cab3a6e35b
/**
 * @copyright	Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

jQuery(document).ready(function() {
	var ajax_structure = {
		success: function(data, textStatus, jqXHR) {
			try {
				var updateInfoList = jQuery.parseJSON(data);
			} catch(e) {
				// An error occured
				jQuery('#plg_quickicon_extensionupdate').find('span').html(plg_quickicon_extensionupdate_text.ERROR);
			}
			if (updateInfoList instanceof Array) {
				if (updateInfoList.length < 1) {
					// No updates
					jQuery('#plg_quickicon_extensionupdate').find('span').html(plg_quickicon_extensionupdate_text.UPTODATE);
				} else {
					var updateString = plg_quickicon_extensionupdate_text.UPDATEFOUND.replace("%s", updateInfoList.length);
					jQuery('#plg_quickicon_extensionupdate').find('span').html(updateString);
				}
			} else {
				// An error occured
				jQuery('#plg_quickicon_extensionupdate').find('span').html(plg_quickicon_extensionupdate_text.ERROR);
			}
		},
		error: function(jqXHR, textStatus, errorThrown) {
			// An error occured
			jQuery('#plg_quickicon_extensionupdate').find('span').html(plg_quickicon_extensionupdate_text.ERROR);
		},
		url: plg_quickicon_extensionupdate_ajax_url + '&eid=0&skip=700'
	};
	ajax_object = new jQuery.ajax(ajax_structure);
});

The same content is in 9 releases, Joomla 3.0.3 to 3.2.1. See them all, or every version of this file.