Go to the source code of this file.
elgg provide |
( |
'elgg.upgrades' |
| ) |
|
Provides functions for site upgrades performed through XHR.
elgg register_hook_handler |
( |
'init' |
, |
|
|
'system' |
, |
|
|
elgg.upgrades. |
init |
|
) |
| |
elgg upgrades errorMessages = [] |
Initial value:= function () {
}
function elgg combo checkbox click(function(){if($(this).is(':checked')){$(this).prev().attr('disabled', true);$(this).prev().val('');}else{$(this).prev().attr('disabled', false);}})
Definition at line 10 of file upgrades.js.
Initial value:= function(e) {
e.preventDefault();
var total = $(
'#upgrade-total').
text();
$('.elgg-progressbar').progressbar({
value: 0,
max: total
});
$('#upgrade-run').addClass('hidden');
$('#upgrade-spinner').removeClass('hidden');
elgg.upgrades.upgradeBatch(0);
}
Initializes the XHR upgrade feature.
- Parameters
-
Definition at line 19 of file upgrades.js.
elgg upgrades upgradeBatch |
Fires the ajax action to upgrade a batch of items.
- Parameters
-
{Number} | offset The next upgrade offset |
Definition at line 44 of file upgrades.js.