diff options
| -rw-r--r-- | js/dnxwporg-utils.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/js/dnxwporg-utils.js b/js/dnxwporg-utils.js new file mode 100644 index 0000000..339a437 --- /dev/null +++ b/js/dnxwporg-utils.js @@ -0,0 +1,15 @@ +( function( $ ) { + "use strict"; + + $( document ).ready( function() { + $("input#dnxwporg_use_desc").click( function() { + if ( $(this).prop("checked") ) { + $("textarea#dnxwporg_custom_desc").prop("disabled", !$("input#dnxwporg_use_desc").prop("checked")); + $("textarea#dnxwporg_custom_desc").focus(); + } else { + $("textarea#dnxwporg_custom_desc").prop("disabled", $("input#dnxwporg_use_desc").prop("checked")); + } + }); + }); + +})(jQuery);
\ No newline at end of file |
