Skip to content

Commit 0c4a83b

Browse files
author
Eugene Manuilov
committed
Fixed issue #3 which makes CSV uploader not working in IE and other browsers.
1 parent e6eb775 commit 0c4a83b

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

classes/Visualizer/Render/Page/Data.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected function _renderSidebarContent() {
5858
'chart' => $this->chart->ID,
5959
), admin_url( 'admin-ajax.php' ) );
6060

61-
echo '<li class="group">';
61+
echo '<li class="group open">';
6262
echo '<h3 class="group-title">', esc_html__( 'Upload CSV File', Visualizer_Plugin::NAME ), '</h3>';
6363
echo '<div class="group-content">';
6464
echo '<iframe id="thehole" name="thehole"></iframe>';
@@ -80,7 +80,10 @@ protected function _renderSidebarContent() {
8080
echo '<input type="file" id="csv-file" class="file" name="local_data">';
8181
esc_attr_e( 'From Computer', Visualizer_Plugin::NAME );
8282
echo '</div>';
83-
echo '<a id="remote-file" class="button" href="javascript:;">', esc_html__( 'From Web', Visualizer_Plugin::NAME ), '</a>';
83+
84+
echo '<div>';
85+
echo '<a id="remote-file" class="button" href="javascript:;">', esc_html__( 'From Web', Visualizer_Plugin::NAME ), '</a>';
86+
echo '</div>';
8487
echo '</form>';
8588
echo '</div>';
8689
echo '</div>';

css/frame.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,16 +407,20 @@ div.group-content .group-description {
407407

408408
.file-wrapper {
409409
position: relative;
410-
margin-right: 10px !important;
410+
overflow: hidden;
411411
}
412412

413413
.file {
414+
font-size: 200px;
414415
position: absolute;
415416
top: 0;
416-
left: 0;
417417
right: 0;
418-
bottom: 0;
419418
opacity: 0;
420419
-moz-opacity: 0;
421420
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
421+
}
422+
423+
#remote-file {
424+
margin-top: 10px;
425+
clear: both;
422426
}

0 commit comments

Comments
 (0)