| 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);
|