Total Complexity | 3 |
Complexity/F | 1.5 |
Lines of Code | 15 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | /** |
||
5 | jQuery( document ).ready( function () { |
||
6 | /** |
||
7 | * Normal select2. |
||
8 | */ |
||
9 | jQuery( '.select2-sticky-post' ).select2( { |
||
10 | width: '300px' |
||
11 | } ); |
||
12 | } ); |
||
13 | BulkWP.validateStickyPostSelect2 = function(that) { |
||
14 | if (null !== jQuery(that).parent().prev().children().find(".select2-sticky-post[multiple]").val()) { |
||
15 | return true; |
||
16 | } else { |
||
17 | return false; |
||
18 | } |
||
19 | }; |