at path:ROOT / wp-admin / js / link.js
run:R W Run
DIR
2026-03-11 16:18:51
R W Run
2.86 KB
2026-03-11 16:18:51
R W Run
758 By
2026-03-11 16:18:51
R W Run
6.24 KB
2026-03-11 16:18:51
R W Run
2.95 KB
2026-03-11 16:18:51
R W Run
5.66 KB
2026-03-11 16:18:51
R W Run
2.04 KB
2026-03-11 16:18:51
R W Run
11.32 KB
2026-03-11 16:18:51
R W Run
3.01 KB
2026-03-11 16:18:51
R W Run
9.54 KB
2026-03-11 16:18:51
R W Run
3.4 KB
2026-03-11 16:18:51
R W Run
2.85 KB
2026-03-11 16:18:51
R W Run
1.28 KB
2026-03-11 16:18:51
R W Run
61.15 KB
2026-03-11 16:18:51
R W Run
23.12 KB
2026-03-11 16:18:51
R W Run
3.35 KB
2026-03-11 16:18:51
R W Run
1.18 KB
2026-03-11 16:18:51
R W Run
1.98 KB
2026-03-11 16:18:51
R W Run
288.41 KB
2026-03-11 16:18:51
R W Run
109.69 KB
2026-03-11 16:18:51
R W Run
111.46 KB
2026-03-11 16:18:51
R W Run
47.14 KB
2026-03-11 16:18:51
R W Run
70.05 KB
2026-03-11 16:18:51
R W Run
27.41 KB
2026-03-11 16:18:51
R W Run
27.02 KB
2026-03-11 16:18:51
R W Run
8.65 KB
2026-03-11 16:18:51
R W Run
37.12 KB
2026-03-11 16:18:51
R W Run
15.13 KB
2026-03-11 16:18:51
R W Run
41.61 KB
2026-03-11 16:18:51
R W Run
13.14 KB
2026-03-11 16:18:51
R W Run
44 KB
2026-03-11 16:18:51
R W Run
12.78 KB
2026-03-11 16:18:51
R W Run
7.67 KB
2026-03-11 16:18:51
R W Run
5.41 KB
2026-03-11 16:18:51
R W Run
3.65 KB
2026-03-11 16:18:51
R W Run
39.98 KB
2026-03-11 16:18:51
R W Run
15.15 KB
2026-03-11 16:18:51
R W Run
20.17 KB
2026-03-11 16:18:51
R W Run
9.41 KB
2026-03-11 16:18:51
R W Run
7.61 KB
2026-03-11 16:18:51
R W Run
2.93 KB
2026-03-11 16:18:51
R W Run
23.09 KB
2026-03-11 16:18:51
R W Run
890 By
2026-03-11 16:18:51
R W Run
423 By
2026-03-11 16:18:51
R W Run
3.89 KB
2026-03-11 16:18:51
R W Run
1.7 KB
2026-03-11 16:18:51
R W Run
1.27 KB
2026-03-11 16:18:51
R W Run
611 By
2026-03-11 16:18:51
R W Run
3.38 KB
2026-03-11 16:18:51
R W Run
1.13 KB
2026-03-11 16:18:51
R W Run
6.61 KB
2026-03-11 16:18:51
R W Run
2.38 KB
2026-03-11 16:18:51
R W Run
61.15 KB
2026-03-11 16:18:51
R W Run
30.06 KB
2026-03-11 16:18:51
R W Run
4.14 KB
2026-03-11 16:18:51
R W Run
1.1 KB
2026-03-11 16:18:51
R W Run
1.31 KB
2026-03-11 16:18:51
R W Run
847 By
2026-03-11 16:18:51
R W Run
6.92 KB
2026-03-11 16:18:51
R W Run
2.35 KB
2026-03-11 16:18:51
R W Run
38.68 KB
2026-03-11 16:18:51
R W Run
18.4 KB
2026-03-11 16:18:51
R W Run
18.49 KB
2026-03-11 16:18:51
R W Run
6.6 KB
2026-03-11 16:18:51
R W Run
10.67 KB
2026-03-11 16:18:51
R W Run
5.03 KB
2026-03-11 16:18:51
R W Run
33.92 KB
2026-03-11 16:18:51
R W Run
17.97 KB
2026-03-11 16:18:51
R W Run
876 By
2026-03-11 16:18:51
R W Run
620 By
2026-03-11 16:18:51
R W Run
13.15 KB
2026-03-11 16:18:51
R W Run
6.13 KB
2026-03-11 16:18:51
R W Run
6.1 KB
2026-03-11 16:18:51
R W Run
2.2 KB
2026-03-11 16:18:51
R W Run
3.2 KB
2026-03-11 16:18:51
R W Run
1.53 KB
2026-03-11 16:18:51
R W Run
10.88 KB
2026-03-11 16:18:51
R W Run
3 KB
2026-03-11 16:18:51
R W Run
5.64 KB
2026-03-11 16:18:51
R W Run
2.22 KB
2026-03-11 16:18:51
R W Run
5.96 KB
2026-03-11 16:18:51
R W Run
2.41 KB
2026-03-11 16:18:51
R W Run
24.77 KB
2026-03-11 16:18:51
R W Run
11.43 KB
2026-03-11 16:18:51
R W Run
54.94 KB
2026-03-11 16:18:51
R W Run
26.51 KB
2026-03-11 16:18:51
R W Run
109.37 KB
2026-03-11 16:18:51
R W Run
47.31 KB
2026-03-11 16:18:51
R W Run
17.91 KB
2026-03-11 16:18:51
R W Run
7.81 KB
2026-03-11 16:18:51
R W Run
2.25 KB
2026-03-11 16:18:51
R W Run
676 By
2026-03-11 16:18:51
R W Run
22.56 KB
2026-03-11 16:18:51
R W Run
12.31 KB
2026-03-11 16:18:51
R W Run
7.52 KB
2026-03-11 16:18:51
R W Run
1.49 KB
2026-03-11 16:18:51
R W Run
740 By
2026-03-11 16:18:51
R W Run
458 By
2026-03-11 16:18:51
R W Run
error_log
📄link.js
1/**
2 * @output wp-admin/js/link.js
3 */
4
5/* global postboxes, deleteUserSetting, setUserSetting, getUserSetting */
6
7jQuery( function($) {
8
9 var newCat, noSyncChecks = false, syncChecks, catAddAfter;
10
11 $('#link_name').trigger( 'focus' );
12 // Postboxes.
13 postboxes.add_postbox_toggles('link');
14
15 /**
16 * Adds event that opens a particular category tab.
17 *
18 * @ignore
19 *
20 * @return {boolean} Always returns false to prevent the default behavior.
21 */
22 $('#category-tabs a').on( 'click', function(){
23 var t = $(this).attr('href');
24 $(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
25 $('.tabs-panel').hide();
26 $(t).show();
27 if ( '#categories-all' == t )
28 deleteUserSetting('cats');
29 else
30 setUserSetting('cats','pop');
31 return false;
32 });
33 if ( getUserSetting('cats') )
34 $('#category-tabs a[href="#categories-pop"]').trigger( 'click' );
35
36 // Ajax Cat.
37 newCat = $('#newcat').one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ); } );
38
39 /**
40 * After adding a new category, focus on the category add input field.
41 *
42 * @return {void}
43 */
44 $('#link-category-add-submit').on( 'click', function() { newCat.focus(); } );
45
46 /**
47 * Synchronize category checkboxes.
48 *
49 * This function makes sure that the checkboxes are synced between the all
50 * categories tab and the most used categories tab.
51 *
52 * @since 2.5.0
53 *
54 * @return {void}
55 */
56 syncChecks = function() {
57 if ( noSyncChecks )
58 return;
59 noSyncChecks = true;
60 var th = $(this), c = th.is(':checked'), id = th.val().toString();
61 $('#in-link-category-' + id + ', #in-popular-link_category-' + id).prop( 'checked', c );
62 noSyncChecks = false;
63 };
64
65 /**
66 * Adds event listeners to an added category.
67 *
68 * This is run on the addAfter event to make sure the correct event listeners
69 * are bound to the DOM elements.
70 *
71 * @since 2.5.0
72 *
73 * @param {string} r Raw XML response returned from the server after adding a
74 * category.
75 * @param {Object} s List manager configuration object; settings for the Ajax
76 * request.
77 *
78 * @return {void}
79 */
80 catAddAfter = function( r, s ) {
81 $(s.what + ' response_data', r).each( function() {
82 var t = $($(this).text());
83 t.find( 'label' ).each( function() {
84 var th = $(this),
85 val = th.find('input').val(),
86 id = th.find('input')[0].id,
87 name = th.text().trim(),
88 o;
89 $('#' + id).on( 'change', syncChecks );
90 o = $( '<option value="' + parseInt( val, 10 ) + '"></option>' ).text( name );
91 } );
92 } );
93 };
94
95 /*
96 * Instantiates the list manager.
97 *
98 * @see js/_enqueues/lib/lists.js
99 */
100 $('#categorychecklist').wpList( {
101 // CSS class name for alternate styling.
102 alt: '',
103
104 // The type of list.
105 what: 'link-category',
106
107 // ID of the element the parsed Ajax response will be stored in.
108 response: 'category-ajax-response',
109
110 // Callback that's run after an item got added to the list.
111 addAfter: catAddAfter
112 } );
113
114 // All categories is the default tab, so we delete the user setting.
115 $('a[href="#categories-all"]').on( 'click', function(){deleteUserSetting('cats');});
116
117 // Set a preference for the popular categories to cookies.
118 $('a[href="#categories-pop"]').on( 'click', function(){setUserSetting('cats','pop');});
119
120 if ( 'pop' == getUserSetting('cats') )
121 $('a[href="#categories-pop"]').trigger( 'click' );
122
123 /**
124 * Adds event handler that shows the interface controls to add a new category.
125 *
126 * @ignore
127 *
128 * @param {Event} event The event object.
129 * @return {boolean} Always returns false to prevent regular link
130 * functionality.
131 */
132 $('#category-add-toggle').on( 'click', function() {
133 $(this).parents('div:first').toggleClass( 'wp-hidden-children' );
134 $('#category-tabs a[href="#categories-all"]').trigger( 'click' );
135 $('#newcategory').trigger( 'focus' );
136 return false;
137 } );
138
139 $('.categorychecklist :checkbox').on( 'change', syncChecks ).filter( ':checked' ).trigger( 'change' );
140});
141
Ui Ux Design – Teachers Night Out

Get in Touch

© 2024 Teachers Night Out. All Rights Reserved.