Elgg  Version 1.11
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 message elgg state success
Definition: admin.php:252
elgg
Definition: install.js:23
elgg button submit
Definition: admin.php:545
html
Definition: admin.php:36
ui datepicker prev
Definition: admin.php:605
function elgg combo checkbox click(function(){if($(this).is(':checked')){$(this).prev().attr('disabled', true);$(this).prev().val('');}else{$(this).prev().attr('disabled', false);}})
if(!$site) if(!($site instanceof ElggSite)) $site url