Elgg  Version 1.9
Functions | Variables
upgrades.js File Reference

Go to the source code of this file.

Functions

elgg provide ('elgg.upgrades')
 Provides functions for site upgrades performed through XHR. More...
 
elgg register_hook_handler ('init', 'system', elgg.upgrades.init)
 

Variables

elgg upgrades errorMessages = []
 
elgg upgrades init
 
elgg upgrades run
 Initializes the XHR upgrade feature. More...
 
elgg upgrades upgradeBatch
 Fires the ajax action to upgrade a batch of items. More...
 

Function Documentation

elgg provide ( 'elgg.upgrades'  )

Provides functions for site upgrades performed through XHR.

elgg register_hook_handler ( 'init ,
'system ,
elgg.upgrades.  init 
)

Variable Documentation

elgg upgrades errorMessages = []

Definition at line 8 of file upgrades.js.

elgg upgrades init
Initial value:
= function () {
$('#upgrade-run').click(elgg.upgrades.run);
}
elgg
Definition: install.js:23
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.

elgg upgrades run
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);
}
elgg
Definition: install.js:23
elgg input text
Definition: admin.php:478

Initializes the XHR upgrade feature.

Parameters
{Object}e Event object

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.