Skip to content

Commit

Permalink
fix(admin): fixed javascript error on toggle simple cache checkbox
Browse files Browse the repository at this point in the history
Fixes #6529
  • Loading branch information
Sem committed Feb 21, 2014
1 parent 742f731 commit 0533f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/default/js/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
*/
elgg.admin.simplecacheToggle = function() {
// when the checkbox is disabled, do not toggle the compression checkboxes
if (!$this.hasClass('elgg-state-disabled')) {
if (!$(this).hasClass('elgg-state-disabled')) {
var names = ['simplecache_minify_js', 'simplecache_minify_css'];
for (var i = 0; i < names.length; i++) {
var $input = $('input[type!=hidden][name="' + names[i] + '"]');
Expand Down

0 comments on commit 0533f2a

Please sign in to comment.