Skip to content

Commit 77d486e

Browse files
author
martin
committed
bugfix im selectpicker
1 parent 773c2a8 commit 77d486e

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

js/opentiming.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ function clearForm() {
9191
$('#nachname').val('');
9292
$('#verein').val('');
9393
$('#jahrgang').val('');
94-
$('#geschlecht').val('');
94+
$('#geschlecht').prop('selectedIndex',0);
9595
$('#ort').val('');
96+
$('#att').val('');
9697
$('#zeit').val('00:00:00');
98+
$('.selectpicker').selectpicker('refresh');
9799
}
98100

99101

teilnehmer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ function checkAndSubmit( form ) {
167167
var msg = '';
168168
if( $('#nachname').val().length < 2 ) { msg = msg + '<strong>Nachname</strong> darf nicht leer sein<br>'; }
169169
if( $('#vorname').val().length < 2 ) { msg = msg + '<strong>Vorname</strong> darf nicht leer sein<br>'; }
170-
if( $('#rID').val() == 'X' ) { msg = msg + 'Bitte einen <strong>Lauf</strong> ausw&auml;hlen<br>'; }
170+
if( $('#geschlecht').val() == '-' ) { msg = msg + '<strong>Geschlecht</strong> darf nicht leer sein<br>'; }
171+
if( $('#jahrgang').val().length < 4 ) { msg = msg + '<strong>Jahrgang</strong> darf nicht leer sein<br>'; }
172+
if( $('#rID').val() == 'X' ) { msg = msg + 'Bitte einen <strong>Lauf</strong> ausw&auml;hlen<br>'; }
171173

172174
var next = 'teilnehmer';
173175
if( $('#nextFunc').val() != '' ) { next = $('#nextFunc').val(); }

urkundenPDF.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function urkunde($action, $num, $id, $raceData) {
4141
$this->AddPage('Portrait', 'A4');
4242

4343
if($raceData['template'] != '') {
44-
$this->setSourceFile($template);
44+
$this->setSourceFile($raceData['template']);
4545
// import page 1
4646
$tplIdx = $this->importPage(1);
4747
// use the imported page and place it at point 10,10 with a width of 100 mm

0 commit comments

Comments
 (0)