PageSourceSearch

https://www.teachersoftomorrow.org/arizona/wp-content/plugins/jt-s…/assets/js/my-admin.js?ver=7.1.2

js teachersoftomorrow.org collected 2026-10-03 19:53:47 UTC 17,256 bytes, 677 lines download raw bytes

1jQuery(document).ready(function($){
2 
3 
4    var custom_uploader;
5 
6 
7    $('#profile_cv_button').click(function(e) {
8 
9        e.preventDefault();
10 
11        //If the uploader object has already been created, reopen the dialog
12        if (custom_uploader) {
13            custom_uploader.open();
14            return;
15        }
16 
17        //Extend the wp.media object
18        custom_uploader = wp.media.frames.file_frame = wp.media({
19            title: 'Choose File',
20            button: {
21                text: 'Choose File'
22            },
23            multiple: false
24        });
25 
26        //When a file is selected, grab the URL and set it as the text field's value
27        custom_uploader.on('select', function() {
28            attachment = custom_uploader.state().get('selection').first().toJSON();
29            $('#profile_cv').val(attachment.url);
30        });
31 
32        //Open the uploader dialog
33        custom_uploader.open();
34 
35    });
36 
37});
38
39jQuery(document).ready(function($){
40 
41 
42    var custom_uploader;
43 
44 
45    $('#profile_large_img_button').click(function(e) {
46 
47        e.preventDefault();
48 
49        //If the uploader object has already been created, reopen the dialog
50        if (custom_uploader) {
51            custom_uploader.open();
52            return;
53        }
54 
55        //Extend the wp.media object
56        custom_uploader = wp.media.frames.file_frame = wp.media({
57            title: 'Choose Image',
58            button: {
59                text: 'Choose Image'
60            },
61            multiple: false
62        });
63 
64        //When a file is selected, grab the URL and set it as the text field's value
65        custom_uploader.on('select', function() {
66            attachment = custom_uploader.state().get('selection').first().toJSON();
67            $('#profile_large_img').val(attachment.url);
68        });
69 
70        //Open the uploader dialog
71        custom_uploader.open();
72 
73    });
74 
75});
76
77jQuery(document).ready(function($){
78 
79 
80    var custom_uploader;
81 
82 
83    $('#profile_p1_img_button').click(function(e) {
84 
85        e.preventDefault();
86 
87        //If the uploader object has already been created, reopen the dialog
88        if (custom_uploader) {
89            custom_uploader.open();
90            return;
91        }
92 
93        //Extend the wp.media object
94        custom_uploader = wp.media.frames.file_frame = wp.media({
95            title: 'Choose Image',
96            button: {
97                text: 'Choose Image'
98            },
99            multiple: false
100        });
101 
102        //When a file is selected, grab the URL and set it as the text field's value
103        custom_uploader.on('select', function() {
104            attachment = custom_uploader.state().get('selection').first().toJSON();
105            $('#profile_p1_img').val(attachment.url);
106        });
107 
108        //Open the uploader dialog
109        custom_uploader.open();
110 
111    });
112 
113});
114
115jQuery(document).ready(function($){
116 
117 
118    var custom_uploader;
119 
120 
121    $('#profile_p2_img_button').click(function(e) {
122 
123        e.preventDefault();
124 
125        //If the uploader object has already been created, reopen the dialog
126        if (custom_uploader) {
127            custom_uploader.open();
128            return;
129        }
130 
131        //Extend the wp.media object
132        custom_uploader = wp.media.frames.file_frame = wp.media({
133            title: 'Choose Image',
134            button: {
135                text: 'Choose Image'
136            },
137            multiple: false
138        });
139 
140        //When a file is selected, grab the URL and set it as the text field's value
141        custom_uploader.on('select', function() {
142            attachment = custom_uploader.state().get('selection').first().toJSON();
143            $('#profile_p2_img').val(attachment.url);
144        });
145 
146        //Open the uploader dialog
147        custom_uploader.open();
148 
149    });
150 
151});
152jQuery(document).ready(function($){
153 
154 
155    var custom_uploader;
156 
157 
158    $('#profile_p3_img_button').click(function(e) {
159 
160        e.preventDefault();
161 
162        //If the uploader object has already been created, reopen the dialog
163        if (custom_uploader) {
164            custom_uploader.open();
165            return;
166        }
167 
168        //Extend the wp.media object
169        custom_uploader = wp.media.frames.file_frame = wp.media({
170            title: 'Choose Image',
171            button: {
172                text: 'Choose Image'
173            },
174            multiple: false
175        });
176 
177        //When a file is selected, grab the URL and set it as the text field's value
178        custom_uploader.on('select', function() {
179            attachment = custom_uploader.state().get('selection').first().toJSON();
180            $('#profile_p3_img').val(attachment.url);
181        });
182 
183        //Open the uploader dialog
184        custom_uploader.open();
185 
186    });
187 
188});
189jQuery(document).ready(function($){
190 
191 
192    var custom_uploader;
193 
194 
195    $('#profile_p4_img_button').click(function(e) {
196 
197        e.preventDefault();
198 
199        //If the uploader object has already been created, reopen the dialog
200        if (custom_uploader) {
201            custom_uploader.open();
202            return;
203        }
204 
205        //Extend the wp.media object
206        custom_uploader = wp.media.frames.file_frame = wp.media({
207            title: 'Choose Image',
208            button: {
209                text: 'Choose Image'
210            },
211            multiple: false
212        });
213 
214        //When a file is selected, grab the URL and set it as the text field's value
215        custom_uploader.on('select', function() {
216            attachment = custom_uploader.state().get('selection').first().toJSON();
217            $('#profile_p4_img').val(attachment.url);
218        });
219 
220        //Open the uploader dialog
221        custom_uploader.open();
222 
223    });
224 
225});
226jQuery(document).ready(function($){
227 
228 
229    var custom_uploader;
230 
231 
232    $('#profile_p5_img_button').click(function(e) {
233 
234        e.preventDefault();
235 
236        //If the uploader object has already been created, reopen the dialog
237        if (custom_uploader) {
238            custom_uploader.open();
239            return;
240        }
241 
242        //Extend the wp.media object
243        custom_uploader = wp.media.frames.file_frame = wp.media({
244            title: 'Choose Image',
245            button: {
246                text: 'Choose Image'
247            },
248            multiple: false
249        });
250 
251        //When a file is selected, grab the URL and set it as the text field's value
252        custom_uploader.on('select', function() {
253            attachment = custom_uploader.state().get('selection').first().toJSON();
254            $('#profile_p5_img').val(attachment.url);
255        });
256 
257        //Open the uploader dialog
258        custom_uploader.open();
259 
260    });
261 
262});
263jQuery(document).ready(function($){
264 
265 
266    var custom_uploader;
267 
268 
269    $('#profile_p6_img_button').click(function(e) {
270 
271        e.preventDefault();
272 
273        //If the uploader object has already been created, reopen the dialog
274        if (custom_uploader) {
275            custom_uploader.open();
276            return;
277        }
278 
279        //Extend the wp.media object
280        custom_uploader = wp.media.frames.file_frame = wp.media({
281            title: 'Choose Image',
282            button: {
283                text: 'Choose Image'
284            },
285            multiple: false
286        });
287 
288        //When a file is selected, grab the URL and set it as the text field's value
289        custom_uploader.on('select', function() {
290            attachment = custom_uploader.state().get('selection').first().toJSON();
291            $('#profile_p6_img').val(attachment.url);
292        });
293 
294        //Open the uploader dialog
295        custom_uploader.open();
296 
297    });
298 
299});
300jQuery(document).ready(function($){
301 
302 
303    var custom_uploader;
304 
305 
306    $('#profile_p7_img_button').click(function(e) {
307 
308        e.preventDefault();
309 
310        //If the uploader object has already been created, reopen the dialog
311        if (custom_uploader) {
312            custom_uploader.open();
313            return;
314        }
315 
316        //Extend the wp.media object
317        custom_uploader = wp.media.frames.file_frame = wp.media({
318            title: 'Choose Image',
319            button: {
320                text: 'Choose Image'
321            },
322            multiple: false
323        });
324 
325        //When a file is selected, grab the URL and set it as the text field's value
326        custom_uploader.on('select', function() {
327            attachment = custom_uploader.state().get('selection').first().toJSON();
328            $('#profile_p7_img').val(attachment.url);
329        });
330 
331        //Open the uploader dialog
332        custom_uploader.open();
333 
334    });
335 
336});
337jQuery(document).ready(function($){
338 
339 
340    var custom_uploader;
341 
342 
343    $('#profile_p8_img_button').click(function(e) {
344 
345        e.preventDefault();
346 
347        //If the uploader object has already been created, reopen the dialog
348        if (custom_uploader) {
349            custom_uploader.open();
350            return;
351        }
352 
353        //Extend the wp.media object
354        custom_uploader = wp.media.frames.file_frame = wp.media({
355            title: 'Choose Image',
356            button: {
357                text: 'Choose Image'
358            },
359            multiple: false
360        });
361 
362        //When a file is selected, grab the URL and set it as the text field's value
363        custom_uploader.on('select', function() {
364            attachment = custom_uploader.state().get('selection').first().toJSON();
365            $('#profile_p8_img').val(attachment.url);
366        });
367 
368        //Open the uploader dialog
369        custom_uploader.open();
370 
371    });
372 
373});
374
375jQuery(document).ready(function($){
376 
377 
378    var custom_uploader;
379 
380 
381    $('#profile_gallery_img1_button').click(function(e) {
382 
383        e.preventDefault();
384 
385        //If the uploader object has already been created, reopen the dialog
386        if (custom_uploader) {
387            custom_uploader.open();
388            return;
389        }
390 
391        //Extend the wp.media object
392        custom_uploader = wp.media.frames.file_frame = wp.media({
393            title: 'Choose Image',
394            button: {
395                text: 'Choose Image'
396            },
397            multiple: false
398        });
399 
400        //When a file is selected, grab the URL and set it as the text field's value
401        custom_uploader.on('select', function() {
402            attachment = custom_uploader.state().get('selection').first().toJSON();
403            $('#profile_gallery_img1').val(attachment.url);
404        });
405 
406        //Open the uploader dialog
407        custom_uploader.open();
408 
409    });
410 
411});
412
413jQuery(document).ready(function($){
414 
415 
416    var custom_uploader;
417 
418 
419    $('#profile_gallery_img2_button').click(function(e) {
420 
421        e.preventDefault();
422 
423        //If the uploader object has already been created, reopen the dialog
424        if (custom_uploader) {
425            custom_uploader.open();
426            return;
427        }
428 
429        //Extend the wp.media object
430        custom_uploader = wp.media.frames.file_frame = wp.media({
431            title: 'Choose Image',
432            button: {
433                text: 'Choose Image'
434            },
435            multiple: false
436        });
437 
438        //When a file is selected, grab the URL and set it as the text field's value
439        custom_uploader.on('select', function() {
440            attachment = custom_uploader.state().get('selection').first().toJSON();
441            $('#profile_gallery_img2').val(attachment.url);
442        });
443 
444        //Open the uploader dialog
445        custom_uploader.open();
446 
447    });
448 
449});
450
451jQuery(document).ready(function($){
452 
453 
454    var custom_uploader;
455 
456 
457    $('#profile_gallery_img3_button').click(function(e) {
458 
459        e.preventDefault();
460 
461        //If the uploader object has already been created, reopen the dialog
462        if (custom_uploader) {
463            custom_uploader.open();
464            return;
465        }
466 
467        //Extend the wp.media object
468        custom_uploader = wp.media.frames.file_frame = wp.media({
469            title: 'Choose Image',
470            button: {
471                text: 'Choose Image'
472            },
473            multiple: false
474        });
475 
476        //When a file is selected, grab the URL and set it as the text field's value
477        custom_uploader.on('select', function() {
478            attachment = custom_uploader.state().get('selection').first().toJSON();
479            $('#profile_gallery_img3').val(attachment.url);
480        });
481 
482        //Open the uploader dialog
483        custom_uploader.open();
484 
485    });
486 
487});
488
489jQuery(document).ready(function($){
490 
491 
492    var custom_uploader;
493 
494 
495    $('#profile_gallery_img4_button').click(function(e) {
496 
497        e.preventDefault();
498 
499        //If the uploader object has already been created, reopen the dialog
500        if (custom_uploader) {
501            custom_uploader.open();
502            return;
503        }
504 
505        //Extend the wp.media object
506        custom_uploader = wp.media.frames.file_frame = wp.media({
507            title: 'Choose Image',
508            button: {
509                text: 'Choose Image'
510            },
511            multiple: false
512        });
513 
514        //When a file is selected, grab the URL and set it as the text field's value
515        custom_uploader.on('select', function() {
516            attachment = custom_uploader.state().get('selection').first().toJSON();
517            $('#profile_gallery_img4').val(attachment.url);
518        });
519 
520        //Open the uploader dialog
521        custom_uploader.open();
522 
523    });
524 
525});
526
527jQuery(document).ready(function($){
528 
529 
530    var custom_uploader;
531 
532 
533    $('#profile_gallery_img5_button').click(function(e) {
534 
535        e.preventDefault();
536 
537        //If the uploader object has already been created, reopen the dialog
538        if (custom_uploader) {
539            custom_uploader.open();
540            return;
541        }
542 
543        //Extend the wp.media object
544        custom_uploader = wp.media.frames.file_frame = wp.media({
545            title: 'Choose Image',
546            button: {
547                text: 'Choose Image'
548            },
549            multiple: false
550        });
551 
552        //When a file is selected, grab the URL and set it as the text field's value
553        custom_uploader.on('select', function() {
554            attachment = custom_uploader.state().get('selection').first().toJSON();
555            $('#profile_gallery_img5').val(attachment.url);
556        });
557 
558        //Open the uploader dialog
559        custom_uploader.open();
560 
561    });
562 
563});
564
565jQuery(document).ready(function($){
566 
567 
568    var custom_uploader;
569 
570 
571    $('#profile_gallery_img6_button').click(function(e) {
572 
573        e.preventDefault();
574 
575        //If the uploader object has already been created, reopen the dialog
576        if (custom_uploader) {
577            custom_uploader.open();
578            return;
579        }
580 
581        //Extend the wp.media object
582        custom_uploader = wp.media.frames.file_frame = wp.media({
583            title: 'Choose Image',
584            button: {
585                text: 'Choose Image'
586            },
587            multiple: false
588        });
589 
590        //When a file is selected, grab the URL and set it as the text field's value
591        custom_uploader.on('select', function() {
592            attachment = custom_uploader.state().get('selection').first().toJSON();
593            $('#profile_gallery_img6').val(attachment.url);
594        });
595 
596        //Open the uploader dialog
597        custom_uploader.open();
598 
599    });
600 
601});
602
603jQuery(document).ready(function($){
604 
605 
606    var custom_uploader;
607 
608 
609    $('#profile_gallery_img7_button').click(function(e) {
610 
611        e.preventDefault();
612 
613        //If the uploader object has already been created, reopen the dialog
614        if (custom_uploader) {
615            custom_uploader.open();
616            return;
617        }
618 
619        //Extend the wp.media object
620        custom_uploader = wp.media.frames.file_frame = wp.media({
621            title: 'Choose Image',
622            button: {
623                text: 'Choose Image'
624            },
625            multiple: false
626        });
627 
628        //When a file is selected, grab the URL and set it as the text field's value
629        custom_uploader.on('select', function() {
630            attachment = custom_uploader.state().get('selection').first().toJSON();
631            $('#profile_gallery_img7').val(attachment.url);
632        });
633 
634        //Open the uploader dialog
635        custom_uploader.open();
636 
637    });
638 
639});
640
641jQuery(document).ready(function($){
642 
643 
644    var custom_uploader;
645 
646 
647    $('#profile_gallery
647_img8_button').click(function(e) {
648 
649        e.preventDefault();
650 
651        //If the uploader object has already been created, reopen the dialog
652        if (custom_uploader) {
653            custom_uploader.open();
654            return;
655        }
656 
657        //Extend the wp.media object
658        custom_uploader = wp.media.frames.file_frame = wp.media({
659            title: 'Choose Image',
660            button: {
661                text: 'Choose Image'
662            },
663            multiple: false
664        });
665 
666        //When a file is selected, grab the URL and set it as the text field's value
667        custom_uploader.on('select', function() {
668            attachment = custom_uploader.state().get('selection').first().toJSON();
669            $('#profile_gallery_img8').val(attachment.url);
670        });
671 
672        //Open the uploader dialog
673        custom_uploader.open();
674 
675    });
676 
677});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.