/home/vianto5/ceibaresidencial.mx/wp-content/plugins/olympus-google-fonts/assets/js
NameSizeModeActions
admin.js13670644editdlrm
chosen.min.js301390644editdlrm
customize-controls.js139940644editdlrm
customize-preview.js45520644editdlrm
customizer-repeater.js31330644editdlrm
multiple-checkbox.js14200644editdlrm
panels.js30380644editdlrm
uploadFonts.js13870644editdlrm
Edit: /home/vianto5/ceibaresidencial.mx/wp-content/plugins/olympus-google-fonts/assets/js/uploadFonts.js (1387B)
(function($){ /** * OgfUploadFonts */ OgfUploadFonts = { /** * Initializes OgfUploadFonts. * * @since 1.0 * @method init */ init: function() { // Init. this._fileUploads(); }, /** * Font File Uploads * * @access private * @method _fileUploads */ _fileUploads: function() { var file_frame; window.inputWrapper = ''; $( document.body ).on('click', '.ogf-custom-fonts-upload', function(event) { event.preventDefault(); var button = $(this), button_type = button.data('upload-type'); window.inputWrapper = $(this).closest('.ogf-custom-fonts-file-wrap'); // If the media frame already exists, reopen it. if ( file_frame ) { file_frame.open(); return; } // Create a new media frame file_frame = wp.media.frames.file_frame = wp.media({ multiple: false // Set to true to allow multiple files to be selected }); // When an image is selected in the media frame... file_frame.on( 'select', function() { // Get media attachment details from the frame state var attachment = file_frame.state().get('selection').first().toJSON(); window.inputWrapper.find( '.ogf-custom-fonts-link-input' ).val(attachment.url); }); // Finally, open the modal file_frame.open(); }); }, } $(function() { OgfUploadFonts.init(); }); })(jQuery);