New theme base for SuiteDesk
This commit is contained in:
parent
c1bbd9d6f5
commit
8cf3c56044
137 changed files with 12866 additions and 8 deletions
27
themes/zen/zen-internals/js/theme-settings.js
Normal file
27
themes/zen/zen-internals/js/theme-settings.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
$(document).ready( function() {
|
||||
// Hide the breadcrumb details, if no breadcrumb.
|
||||
$('#edit-zen-breadcrumb').change(
|
||||
function() {
|
||||
div = $('#div-zen-breadcrumb-collapse');
|
||||
if ($('#edit-zen-breadcrumb').val() == 'no') {
|
||||
div.slideUp('slow');
|
||||
} else if (div.css('display') == 'none') {
|
||||
div.slideDown('slow');
|
||||
}
|
||||
}
|
||||
);
|
||||
if ($('#edit-zen-breadcrumb').val() == 'no') {
|
||||
$('#div-zen-breadcrumb-collapse').css('display', 'none');
|
||||
}
|
||||
$('#edit-zen-breadcrumb-title').change(
|
||||
function() {
|
||||
checkbox = $('#edit-zen-breadcrumb-trailing');
|
||||
if ($('#edit-zen-breadcrumb-title').attr('checked')) {
|
||||
checkbox.attr('disabled', 'disabled');
|
||||
} else {
|
||||
checkbox.removeAttr('disabled');
|
||||
}
|
||||
}
|
||||
);
|
||||
$('#edit-zen-breadcrumb-title').change();
|
||||
} );
|
Reference in a new issue