CoreFiles by mySites.guru
extensionupdatecheck.js35 lines, 1,362 bytes, from Joomla_3.3.0-Stable-Full_Package.zip
Raw History Compare with 3.2.7
md5
26783318e02b695a862be40401246e0e
sha1
ebfe9dabdf9718340b332f247f47b49bbe0f82fa
sha256
6f162ea3c3044e088c10240f5b0538b5d4f92480f4cb60b37fa8bfc14626bb5c
/**
 * @copyright	Copyright (C) 2005 - 2014 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 13 releases, Joomla 3.2.2 to 3.3.6. See them all, or every version of this file.