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