Skip to content

Commit e5ed957

Browse files
committed
Wrong input box filled with multiple file fields
Fixes #46
1 parent 9901313 commit e5ed957

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/class.settings-api.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -550,20 +550,13 @@ function(){
550550
evt.preventDefault();
551551
});
552552

553-
var file_frame = null;
554553
$('.wpsa-browse').on('click', function (event) {
555554
event.preventDefault();
556555

557556
var self = $(this);
558557

559-
// If the media frame already exists, reopen it.
560-
if ( file_frame ) {
561-
file_frame.open();
562-
return false;
563-
}
564-
565558
// Create the media frame.
566-
file_frame = wp.media.frames.file_frame = wp.media({
559+
var file_frame = wp.media.frames.file_frame = wp.media({
567560
title: self.data('uploader_title'),
568561
button: {
569562
text: self.data('uploader_button_text'),

0 commit comments

Comments
 (0)