Elgg  Version 3.0
admin.js
Go to the documentation of this file.
1 
6 define(function(require) {
7  var $ = require('jquery');
8 
9  function init () {
10  // disable checkboxes (readonly does not work for them)
11  $(document).on('click', 'input:checkbox.elgg-state-disabled, label.elgg-state-disabled > input:checkbox', function() {
12  return false;
13  });
14 
15  // disable simple cache compress settings if simple cache is off
16  $('[name=simplecache_enabled]').click(simplecacheToggle);
17  }
18 
24  function simplecacheToggle () {
25  // when the checkbox is disabled, do not toggle the compression checkboxes
26  if (!$(this).hasClass('elgg-state-disabled')) {
27  var names = ['simplecache_minify_js', 'simplecache_minify_css', 'cache_symlink_enabled'];
28  for (var i = 0; i < names.length; i++) {
29  var $input = $('input[type!=hidden][name="' + names[i] + '"]');
30  if ($input.length) {
31  $input.parent().toggleClass('elgg-state-disabled');
32  }
33  }
34  }
35  }
36 
37  init();
38 });
define(function(require){var $=require('jquery');function init(){$(document).on('click', 'input:checkbox.elgg-state-disabled, label.elgg-state-disabled > input:checkbox', function(){return false;});$('[name=simplecache_enabled]').click(simplecacheToggle);}function simplecacheToggle(){if(!$(this).hasClass('elgg-state-disabled')){var names=['simplecache_minify_js', 'simplecache_minify_css', 'cache_symlink_enabled'];for(var i=0;i< names.length;i++){var $input=$('input[type!=hidden][name="' + names[i] + '"]');if($input.length){$input.parent().toggleClass('elgg-state-disabled');}}}}init();})
Admin-area specific javascript functions.
elgg require
Throw an error if the required package isn&#39;t present.
Definition: elgglib.js:164
function elgg combo checkbox click(function(){if($(this).is(':checked')){$(this).prev().attr('disabled', true);$(this).prev().val('');}else{$(this).prev().attr('disabled', false);}})
$input
Form field view.
Definition: field.php:13
Bundled plugins(the contents of the"/mod"directory) are available only under the GPLv2 license.The remainder of the project is available under either MIT or GPLv2.Both licenses can be found below.More info and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed on
Definition: LICENSE.txt:96