/[drupal]/contributions/modules/quotes/quotes.js
ViewVC logotype

Contents of /contributions/modules/quotes/quotes.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Mon Sep 7 18:26:23 2009 UTC (2 months, 2 weeks ago) by nancyw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +16 -17 lines
File MIME type: text/javascript
Latest from Charles Mattice.
1 /* $Id: quotes.js,v 1.2 2009/08/28 16:28:01 nancyw Exp $ */
2 (function ($) {
3 function quotes_more_handler(event) {
4 if ($("input[name=block_type]:checked").val() == '0') {
5 $("input[name=block_more]").parents("div.quotes_block_more").show();
6 }
7 else {
8 $("input[name=block_more]").parents("div.quotes_block_more").hide();
9 }
10 }
11
12 // Run the javascript on page load.
13 $(document).ready(function () {
14 // On page load, determine the default settings.
15 quotes_more_handler();
16
17 // Bind the functions to click events.
18 $("input[name=block_type]").bind("click", quotes_more_handler);
19 });
20 })(jQuery);

  ViewVC Help
Powered by ViewVC 1.1.2