Elgg  Version 2.2
install.js
Go to the documentation of this file.
1 
2 $(function() {
3  // prevent double-submission of forms
4  $('form').submit(function() {
5  if ($(this).data('submitted')) {
6  return false;
7  }
8  $(this).data('submitted', true);
9  return true;
10  });
11 
12  // toggle the disable attribute of text box based on checkbox
13  $('.elgg-combo-checkbox').click(function() {
14  if ($(this).is(':checked')) {
15  $(this).prev().attr('disabled', true);
16  $(this).prev().val('');
17  } else {
18  $(this).prev().attr('disabled', false);
19  }
20  });
21 });
22 
23 elgg = {
24  installer: {}
25 };
26 
30 elgg.installer.rewriteTest = function(url, success_msg, nextURL) {
31  $.ajax(url, {
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);
39  }
40  }
41  });
42 };
elgg
Definition: install.js:23
html
Definition: admin.css.php:36
elgg button submit
Definition: admin.css.php:561
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
Definition: admin.css.php:252
if(!$site) if(!($site instanceof ElggSite)) $site url
ui datepicker prev
Definition: admin.css.php:620