PageSourceSearch

https://www.opq.org/wp-content/themes/opq.org/inc/acf/image-select-field-type/js/fields-logic.js?ver=1.0.0

js opq.org collected 2026-09-25 21:02:25 UTC 1,206 bytes, 45 lines download raw bytes

1(function($) {
2  /////////////// VARIABLES /////////////////
3  
4  
5  /////////////// ON READY /////////////////
6  $(function() {
7    
8    var $field_list = $( ".acf-field-list" );
9
10    if( $field_list.length ) {
11      check_show_hide_logic_by_value( $(".acf-field-setting-get_image_method input:checked").val() );
12      
13      $field_list.on("change", ".acf-field-setting-get_image_method input", function() {
14        check_show_hide_logic_by_value( $(this).val() );
15      });
16    }
17    
18  });
19  
20  //////////////////// INIT FONCTIONS ////////////////////
21
22  
23  //////////////////// CHECK FUNCTIONS ////////////////////
24  function check_show_hide_logic_by_value( value ) {
25     
26    if( "images_folder_path" === value ) {
27      $( ".acf-field-setting-images_folder_path" ).show();
28      $( ".acf-field-setting-return_format" ).show();
29      
30      $( ".acf-field-setting-images_list" ).hide();
31      
32    } else if("images_list" === value) {
33      $( ".acf-field-setting-images_list" ).show();
34      
35      $( ".acf-field-setting-images_folder_path" ).hide();
36      $( ".acf-field-setting-return_format" ).hide();
37      
38    }
39
40  }
41  
42  //////////////////// FUNCTIONS ////////////////////
43  
44  
45})(jQuery);

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.