Commit | Line | Data |
---|---|---|
38cb3d1d | 1 | ( function( $ ) { |
2 | "use strict"; | |
3 | ||
4 | $( document ).ready( function() { | |
5 | $("input#dnxwporg_use_desc").click( function() { | |
6 | if ( $(this).prop("checked") ) { | |
7 | $("textarea#dnxwporg_custom_desc").prop("disabled", !$("input#dnxwporg_use_desc").prop("checked")); | |
8 | $("textarea#dnxwporg_custom_desc").focus(); | |
9 | } else { | |
10 | $("textarea#dnxwporg_custom_desc").prop("disabled", $("input#dnxwporg_use_desc").prop("checked")); | |
11 | } | |
12 | }); | |
13 | }); | |
14 | ||
15 | })(jQuery); |