PluginProbe
Image Source Control Lite – Show Image Credits and Captions / 1.2
Image Source Control Lite – Show Image Credits and Captions v1.2
3.12.0 3.11.0 trunk 1.1 1.1.1 1.1.2 1.1.2.1 1.1.3 1.10 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.2 1.2.0.1 1.2.0.2 1.2.0.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.4.1 1.3.5 All 110 releases
image-source-control-isc / js / isc.js

isc.js in Image Source Control Lite – Show Image Credits and Captions 1.2, at js/isc.js

30 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 jQuery(document).ready(function(jQuery) {
2 isc_thumbnail_input_checkstate();
3 jQuery('#use_authorname').click(function(){
4 if ('disabled' == jQuery('#byauthor').attr('disabled')) {
5 jQuery('#byauthor').removeAttr('disabled');
6 } else {
7 jQuery('#byauthor').attr('disabled', 'disabled');
8 }
9 });
10 jQuery('#use-thumbnail').click(function(){
11 if ('disabled' == jQuery('#thumbnail-size-select').attr('disabled')) {
12 jQuery('#thumbnail-size-select').removeAttr('disabled');
13 } else {
14 jQuery('#thumbnail-size-select').attr('disabled', 'disabled');
15 }
16 });
17 jQuery('#thumbnail-size-select').change(function(){isc_thumbnail_input_checkstate()});
18
19 });
20
21 function isc_thumbnail_input_checkstate(){
22 if ('custom' == jQuery('#thumbnail-size-select').val()) {
23 jQuery('#custom-width').removeAttr('disabled').css('background-color', 'inherit');
24 jQuery('#custom-height').removeAttr('disabled').css('background-color', 'inherit');
25 } else {
26 jQuery('#custom-width').attr('disabled', 'disabled').css('background-color', '#eee');
27 jQuery('#custom-height').attr('disabled', 'disabled').css('background-color', '#eee');
28 }
29 }
30