Skip to content

Commit

Permalink
Move script so it isn't printed if it isn't required
Browse files Browse the repository at this point in the history
  • Loading branch information
k1sul1 authored Jun 10, 2017
1 parent ae61d90 commit 7841be9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin name: WPLF Export
* Plugin URI: https://github.com/k1sul1/wplf-export
* Description: Export form data from WP Libre Form.
* Version: 1.0
* Version: 1.0.1
* Author: @k1sul1
* Author URI: https://github.com/k1sul1
* License: GPLv2
Expand Down Expand Up @@ -198,10 +198,10 @@ public function noticeNag() {
If it doesn't click here.
</a></p>";
$html .= "</div>";

$html .= "<script>setTimeout(function(){document.getElementById('wplf_export_save').click();},100);</script>";
}

$html .= "<script>setTimeout(function(){document.getElementById('wplf_export_save').click();},100);</script>";

echo $html;
}
}
Expand Down

0 comments on commit 7841be9

Please sign in to comment.