summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhuong Nguyen2009-05-04 17:12:02 (GMT)
committer Phuong Nguyen2009-05-04 17:12:02 (GMT)
commit51491751714f66b35728bfae1999c23c5125b8ad (patch)
tree51bf441bf88e45abfb921074e497b220b035c231
parent02d148b77ef47cbb0174bc55cdc81c7814159cfa (diff)
*** empty log message ***6.x-2.0-alpha2
-rw-r--r--script/theme-settings.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/script/theme-settings.js b/script/theme-settings.js
new file mode 100644
index 0000000..a469f7d
--- /dev/null
+++ b/script/theme-settings.js
@@ -0,0 +1,28 @@
+// $Id$
+$(document).ready( function() {
+ // Hide the breadcrumb details, if no breadcrumb.
+ $('#edit-breadcrumb-display').change(
+ function() {
+ div = $('#div-breadcrumb-collapse');
+ if ($('#edit-breadcrumb-display').val() == 'no') {
+ div.slideUp('fast');
+ } else if (div.css('display') == 'none') {
+ div.slideDown('fast');
+ }
+ }
+ );
+ if ($('#edit-breadcrumb-display').val() == 'no') {
+ $('#div-breadcrumb-collapse').css('display', 'none');
+ }
+ $('#edit-breadcrumb-display-title').change(
+ function() {
+ checkbox = $('#edit-breadcrumb-display-trailing');
+ if ($('#edit-breadcrumb-display-title').attr('checked')) {
+ checkbox.attr('disabled', 'disabled');
+ } else {
+ checkbox.removeAttr('disabled');
+ }
+ }
+ );
+ $('#edit-breadcrumb-display-title').change();
+} );