equal
deleted
inserted
replaced
21 if ( getUserSetting('cats') ) |
21 if ( getUserSetting('cats') ) |
22 $('#category-tabs a[href="#categories-pop"]').click(); |
22 $('#category-tabs a[href="#categories-pop"]').click(); |
23 |
23 |
24 // Ajax Cat |
24 // Ajax Cat |
25 newCat = $('#newcat').one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ) } ); |
25 newCat = $('#newcat').one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ) } ); |
26 $('#category-add-submit').click( function() { newCat.focus(); } ); |
26 $('#link-category-add-submit').click( function() { newCat.focus(); } ); |
27 syncChecks = function() { |
27 syncChecks = function() { |
28 if ( noSyncChecks ) |
28 if ( noSyncChecks ) |
29 return; |
29 return; |
30 noSyncChecks = true; |
30 noSyncChecks = true; |
31 var th = $(this), c = th.is(':checked'), id = th.val().toString(); |
31 var th = $(this), c = th.is(':checked'), id = th.val().toString(); |
32 $('#in-link-category-' + id + ', #in-popular-category-' + id).attr( 'checked', c ); |
32 $('#in-link-category-' + id + ', #in-popular-category-' + id).prop( 'checked', c ); |
33 noSyncChecks = false; |
33 noSyncChecks = false; |
34 }; |
34 }; |
35 |
35 |
36 catAddAfter = function( r, s ) { |
36 catAddAfter = function( r, s ) { |
37 $(s.what + ' response_data', r).each( function() { |
37 $(s.what + ' response_data', r).each( function() { |
57 $('a[href="#categories-pop"]').click(); |
57 $('a[href="#categories-pop"]').click(); |
58 |
58 |
59 $('#category-add-toggle').click( function() { |
59 $('#category-add-toggle').click( function() { |
60 $(this).parents('div:first').toggleClass( 'wp-hidden-children' ); |
60 $(this).parents('div:first').toggleClass( 'wp-hidden-children' ); |
61 $('#category-tabs a[href="#categories-all"]').click(); |
61 $('#category-tabs a[href="#categories-all"]').click(); |
|
62 $('#newcategory').focus(); |
62 return false; |
63 return false; |
63 } ); |
64 } ); |
64 |
65 |
65 $('.categorychecklist :checkbox').change( syncChecks ).filter( ':checked' ).change(); |
66 $('.categorychecklist :checkbox').change( syncChecks ).filter( ':checked' ).change(); |
66 }); |
67 }); |