ajax bei download raus
This commit is contained in:
@@ -58,20 +58,14 @@ class VinylDownload {
|
||||
// max count not reached
|
||||
if ( false === $this->reached_max_dl( $row['count'] ) ) {
|
||||
$content ='
|
||||
|
||||
<div id="1">
|
||||
<p>Du hast noch <strong>' . ( self::MAXDOWNLOADS - $row['count'] - 1 ) .'</strong> Downloads zur Verfügung bis der Code ungültig wird.
|
||||
<div id="1">
|
||||
<form method=POST id="dl-trigger" action="https://www.rainervonvielen.de/digital-download"><p>
|
||||
<input type="hidden" value="'. $this->code . '" name="c">
|
||||
<input type="hidden" value="'. $f . '" name="sel_format">
|
||||
<input type="submit" class ="btn middle" value="Start">
|
||||
</form>
|
||||
</div>
|
||||
<script>
|
||||
jQuery("#dl-trigger").submit(function(e) {
|
||||
jQuery("#1").html( "<p><strong>Download ist gestartet.</strong> Du hast noch <strong>' . ( self::MAXDOWNLOADS - $row['count'] - 1 ) .'</strong> Downloads zur Verfügung bis der Code ungültig wird." );
|
||||
});
|
||||
return true;
|
||||
</script>
|
||||
|
||||
';
|
||||
}
|
||||
|
Reference in New Issue
Block a user