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

Contents of /contributions/modules/image_resize_filter/image_resize_filter.js

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


Revision 1.2 - (show annotations) (download) (as text)
Mon Apr 27 23:51:05 2009 UTC (6 months, 4 weeks ago) by quicksketch
Branch: MAIN
CVS Tags: DRUPAL-6--1-4, DRUPAL-6--1-5, DRUPAL-6--1-6, DRUPAL-6--1-2, DRUPAL-6--1-3, HEAD
Changes since 1.1: +5 -2 lines
File MIME type: text/javascript
#446724: marquardt: Adding rel attribute to links.
1 /**
2 * @file
3 * Small enhancement for configuring the options of the Image Resize Filter.
4 */
5
6 /**
7 * Show the link class option if the "Link to the original" option is checked.
8 */
9 jQuery(document).ready(function() {
10 jQuery('.image-resize-filter-link-options input.form-checkbox').change(function() {
11 if (this.checked) {
12 jQuery('span.image-resize-filter-rel').show();
13 jQuery('span.image-resize-filter-class').show();
14 }
15 else {
16 jQuery('span.image-resize-filter-rel').hide();
17 jQuery('span.image-resize-filter-class').hide();
18 }
19 });
20
21 if (jQuery('.image-resize-filter-link-options input').is('[checked]') == false) {
22 jQuery('span.image-resize-filter-rel').hide();
23 jQuery('span.image-resize-filter-class').hide();
24 }
25 })

  ViewVC Help
Powered by ViewVC 1.1.2