- md5
- 2a8824747b00f2d4541a5d270621e81f
- sha1
- 83bd47f67644965b1cc5e959e6a65602783060c1
- sha256
- b0bd20a1c4779c877bf8ca17c47ca7d90d07e05a8d17b2248f4b54ac7268445f
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
/**
* @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 == 0) {
// No updates
jQuery('#plg_quickicon_extensionupdate').find('span').html(plg_quickicon_extensionupdate_text.UPTODATE);
} else {
var updateString = plg_quickicon_extensionupdate_text.UPDATEFOUND_MESSAGE.replace("%s", updateInfoList.length);
if (jQuery('.alert-joomlaupdate').length == 0)
{
jQuery('#system-message-container').prepend(
'<div class="alert alert-error alert-joomlaupdate">'
+ updateString
+ ' <button class="btn btn-primary" onclick="document.location=\'' + plg_quickicon_extensionupdate_url + '\'">'
+ plg_quickicon_extensionupdate_text.UPDATEFOUND_BUTTON + '</button>'
+ '</div>'
);
}
else
{
jQuery('#system-message-container').prepend(
'<div class="alert alert-error alert-joomlaupdate span6">'
+ updateString
+ ' <button class="btn btn-primary" onclick="document.location=\'' + plg_quickicon_extensionupdate_url + '\'">'
+ plg_quickicon_extensionupdate_text.UPDATEFOUND_BUTTON + '</button>'
+ '</div>'
);
}
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);
});
No other release has this exact content. See every version of this file.