- Implemented StreamInterface, UploadedFileInterface, and UriInterface as per PSR standards. - Added getallheaders function to retrieve HTTP headers in a compatible manner. - Included LICENSE files for ralouphie/getallheaders and symfony/deprecation-contracts. - Introduced function for triggering deprecation notices in Symfony.
35 lines
1.1 KiB
JavaScript
35 lines
1.1 KiB
JavaScript
jQuery(document).ready(function(){
|
|
const atfpSubsubsubList = jQuery('.atfp_subsubsub');
|
|
const atfpBulkTranslateBtn = jQuery('.atfpp-bulk-translate-btn');
|
|
|
|
if(atfpSubsubsubList.length){
|
|
const $defaultSubsubsub = jQuery('ul.subsubsub:not(.atfp_subsubsub_list)');
|
|
|
|
if($defaultSubsubsub.length){
|
|
$defaultSubsubsub.after(atfpSubsubsubList);
|
|
atfpSubsubsubList.show();
|
|
}
|
|
}
|
|
|
|
if(atfpBulkTranslateBtn.length){
|
|
const $defaultFilter = jQuery('.actions:not(.bulkactions)');
|
|
const $bulkAction=jQuery('.actions.bulkactions');
|
|
|
|
if($defaultFilter.length){
|
|
$defaultFilter.each(function(){
|
|
const clone=atfpBulkTranslateBtn.clone(true);
|
|
jQuery(this).append(clone);
|
|
clone.show();
|
|
});
|
|
|
|
atfpBulkTranslateBtn.remove();
|
|
}else if($bulkAction.length){
|
|
$bulkAction.each(function(){
|
|
const clone=atfpBulkTranslateBtn.clone(true);
|
|
jQuery(this).after(clone);
|
|
clone.show();
|
|
});
|
|
}
|
|
}
|
|
});
|