PageSourceSearch

https://www.cnpmai.net/wp-content/plugins/qtranslate-to-wpml-export/scripts.js?ver=5.4.23

js cnpmai.net collected 2026-10-02 09:58:41 UTC 8,137 bytes, 191 lines download raw bytes

1    jQuery(document).ready(function(){
2        jQuery('#qt_import_start').click(qt_import_terms_batch);
3        
4        var qt_terms_batch = 0;
5        var qt_terms_keepgoing = 0;
6        function qt_import_terms_batch(){
7            
8            if(jQuery('#confirm_import:checked, #confirm_dbbk:checked').length < 2){
9                return;
10            }
11            
12            qt_terms_batch++;
13            jQuery('#qt_import_working').fadeIn();
14            jQuery('#qt_import_start').attr('disabled', 'disabled');
15            jQuery.ajax({
16                type: "POST",
17                url: ajaxurl,
18                dataType: 'json',
19                data: 'action=qt_terms_ajx&qt_terms_batch='+qt_terms_batch+'&qt_terms_keepgoing='+qt_terms_keepgoing+'&qt_nonce='+jQuery('#qt_terms').val(),
20                success: function(res){                            
21                    jQuery('#qt_import_status:hidden').show();
22                    jQuery('#qt_import_status').html(res.messages.join('<br />') + jQuery('#qt_import_status').html());
23                    if(res.keepgoing){
24                        qt_terms_keepgoing = 1;
25                        qt_import_terms_batch();
26                    }else{
27                        jQuery('#qt_import_working').fadeOut();
28                        qt_keepgoing = 0;
29                        qt_import_process_batch();
30                    }
31                }
32                                    
33            })                        
34        }
35
36
37        var qt_import_batch = 0;
38        var qt_keepgoing = 0;
39        function qt_import_process_batch(){
40
41            qt_import_batch++;
42            jQuery('#qt_import_working').fadeIn();
43            jQuery('#qt_import_start').attr('disabled', 'disabled');
44            jQuery.ajax({
45                type: "POST",
46                url: ajaxurl,
47                dataType: 'json',
48                data: 'action=qt_import_ajx&qt_import_batch='+qt_import_batch+'&qt_keepgoing='+qt_keepgoing+'&qt_nonce='+jQuery('#qt_import').val(),
49                success: function(res){                            
50                    jQuery('#qt_import_status:hidden').show();
51                    jQuery('#qt_import_status').html(res.messages.join('<br />') + jQuery('#qt_import_status').html());
52                    if(res.keepgoing){
53                        qt_keepgoing = 1;
54                        qt_import_process_batch();        
55                    }else{
56                        jQuery('#qt_import_working').fadeOut();
57                        /*jQuery('#qt_import_start').removeAttr('disabled');*/
58                        qt_keepgoing = 0;
59                        // Fixing links starts
60                        qt_fix_links();
61                    }
62                }
63                                    
64            })                        
65        }
66        
67        jQuery('#qt_clean_form select[name=language_keep]').change(function(){
68                                
69            if(jQuery(this).val().length > 0){
70                
71                var lang_code = jQuery(this).val();
72                var lang_sel = jQuery(this).find('option[value='+lang_code+']').html();
73                var langs_removed = [];
74                jQuery(this).find('option').each(function(){
75                    if(jQuery(this).val() != '' && jQuery(this).html() != lang_sel){
76                        langs_removed.push(jQuery(this).html());   
77                    }                            
78                });
79                
80                jQuery('#qt_language_removed').html(langs_removed.join(', '));
81                jQuery('#qt_language_kept').html(lang_sel);
82                jQuery('#qt_clean_confirm').fadeIn();
83                
84            }else{
85                jQuery('#qt_clean_confirm').hide();
86            }
87        });
88        
89        jQuery('#confirm_delete, #confirm_keep').click(function(){                    
90            if(jQuery('#confirm_delete:checked, #confirm_keep:checked').length == 2){
91                jQuery('#qt_clean_form :submit').removeAttr('disabled');
92            }else{
93                jQuery('#qt_clean_form :submit').attr('disabled', 'disabled');
94            }
95        })
96
97        
98        jQuery('#confirm_import, #confirm_dbbk').click(function(){                    
99            if(jQuery('#confirm_import:checked, #confirm_dbbk:checked').length == 2){
100                jQuery('#qt_import_start').removeAttr('disabled');
101            }else{
102                jQuery('#qt_import_start').attr('disabled', 'disabled');
103            }
104        })
105        
106        jQuery('#qt_clean_form').submit(qt_clean_process_batch);
107            
108        var qt_clean_batch = 0;
109        var qt_keepgoing = 0;
110        function qt_clean_process_batch(){
111            qt_clean_batch++;
112            jQuery('#qt_clean_working').fadeIn();
113            jQuery('#qt_clean_start').attr('disabled', 'disabled');
114            jQuery.ajax({
115                type: "POST",
116                url: ajaxurl,
117                dataType: 'json',
118                data: 'action=qt_clean_ajx&lang='+jQuery('#qt_clean_form select[name=language_keep]').val()+'&qt_clean_batch='+qt_clean_batch+'&qt_keepgoing='+qt_keepgoing,
119                success: function(res){                                                        
120                    jQuery('#qt_clean_status').html(res.messages.join('<br />') + jQuery('#qt_clean_status').html());
121                    jQuery('#qt_clean_status:hidden').show();
122                    if(res.keepgoing){
123                        qt_keepgoing = 1;
124                        qt_clean_process_batch();        
125                    }else{
126                        jQuery('#qt_clean_working').fadeOut();
127                        qt_keepgoing = 0;
128                    }
129                }
130                                    
131            })                        
132            
133            return false;
134        }
135        
136        
137        var qt_lfix_batch = 0;
138        function qt_fix_links(){
139            qt_lfix_batch++;
140            jQuery('#qt_import_working').fadeIn();
141            jQuery('#qt_import_start').attr('disabled', 'disabled');
142            jQuery.ajax({
143                type: "POST",
144                url: ajaxurl,
145                dataType: 'json',
146                data: 'action=qt_fix_links_ajx&qt_lfix_batch='+qt_lfix_batch+'&qt_keepgoing='+qt_keepgoing+'&qt_nonce='+jQuery('#qt_links').val(),
147                success: function(res){                            
148                    jQuery('#qt_import_status').html(res.messages.join('<br />') + jQuery('#qt_import_status').html());
149                    if(res.keepgoing){
150                        qt_keepgoing = 1;
151                        qt_fix_links();        
152                    }else{
153                        jQuery('#qt_import_working').fadeOut();
154                        /*jQuery('#qt_import_start').removeAttr('disabled');*/
155                        qt_keepgoing = 0;                                
156                        if(res.redirects){
157                            jQuery('#qt_import_redirects textarea').val(res.redirects);
158                            jQuery('#qt_import_redirects').fadeIn();
159                        }
160                        
161                    }
162                }
163                                    
164            })                        
165        }
166        
167        
168        jQuery('#qt_verify_htaccess').click(function(){
169            
170            jQuery('#qt_verify_htaccess_yes, #qt_verify_htaccess_no').hide();
171            jQuery.ajax({
172                type: "POST",
173                url: ajaxurl,
174                dataType: 'json',
175                data: 'action=qt_verify_htaccess',
176                success: function(res){                            
177                    if(res.found == 1){
178                        jQuery('#qt_verify_htaccess_yes').fadeIn();
179                    }else{
180                        jQuery('#qt_verify_htaccess_no').fadeIn();
181                    }    
182                }
183                                    
184            })                        
185            
186            
187        })
188        
189        
190        
191    })

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.