4 $(
'form').
submit(
function() {
5 if ($(
this).data(
'submitted')) {
8 $(
this).data(
'submitted',
true);
13 $(
'.elgg-combo-checkbox').
click(
function() {
14 if ($(
this).is(
':checked')) {
15 $(
this).
prev().attr(
'disabled',
true);
16 $(
this).
prev().val(
'');
18 $(
this).
prev().attr(
'disabled',
false);
30 elgg.installer.rewriteTest =
function(
url, success_msg, nextURL) {
32 success:
function(data, status, xhr) {
33 if (data ==
'success') {
34 $(
'.elgg-require-rewrite li').attr(
'class',
'pass');
35 $(
'.elgg-require-rewrite li').
html(
'<p>' + success_msg +
'</p>');
36 $(
'.elgg-install-nav a.elgg-state-disabled')
37 .removeClass(
'elgg-state-disabled')
38 .attr(
'href', nextURL);
function elgg combo checkbox click(function(){if($(this).is(':checked')){$(this).prev().attr('disabled', true);$(this).prev().val('');}else{$(this).prev().attr('disabled', false);}})
elgg message elgg state success
if(!$site) if(!($site instanceof ElggSite)) $site url