/
home
/
techb158
/
public_html
/
wp-content
/
themes
/
engitech
/
inc
/
backend
/
js
/
/home/techb158/public_html/wp-content/themes/engitech/inc/backend/js
mkdir
upload
Name
Size
Mode
Actions
admin-script.js
1119
0666
edit
dl
rm
simple-likes-public.js
1354
0666
edit
dl
rm
upload_media_widget.js
973
0666
edit
dl
rm
Edit:
/home/techb158/public_html/wp-content/themes/engitech/inc/backend/js/admin-script.js
(1119B)
(function( $ ) { 'use strict'; // Show/hide settings for post format when choose post format var $format = $('#post-formats-select').find('input.post-format'), $formatBox = $('#format_detail'); $format.on('change', function () { var type = $(this).filter(':checked').val(); postFormatSettings(type); }); $format.filter(':checked').trigger('change'); $(document.body).on('change', '.editor-post-format .components-select-control__input', function () { var type = $(this).val(); postFormatSettings(type); }); $(window).on('load',function () { var $el = $(document.body).find('.editor-post-format .components-select-control__input'), type = $el.val(); postFormatSettings(type); }); function postFormatSettings(type) { $formatBox.hide(); if ($formatBox.find('.rwmb-field').hasClass(type)) { $formatBox.show(); } $formatBox.find('.rwmb-field').slideUp(); $formatBox.find('.' + type).slideDown(); } })(jQuery);
Save
cmd:
run