Remove special handing for location of online tournaments
This commit is contained in:
@@ -112,7 +112,7 @@ onLoad(() => {
|
||||
rounds: form.val('rounds'),
|
||||
country: form.val('country'),
|
||||
online: form.val('online'),
|
||||
location: form.val('online') ? "" : form.val('location'),
|
||||
location: form.val('location'),
|
||||
pairing: {
|
||||
type: form.val('pairing'),
|
||||
// mmFloor: form.val('mmFloor'),
|
||||
|
@@ -43,7 +43,6 @@
|
||||
<span class="info"></span>
|
||||
<input name="location" type="text" placeholder="tournament location" value="#if($tour)$!tour.location#end"/>
|
||||
<div class="edit online">
|
||||
or
|
||||
<label>
|
||||
<input name="online" type="checkbox" #if($tour && $tour.online) checked #end style="vertical-align: baseline;" value="true"/> <b>online tournament</b>
|
||||
</label>
|
||||
|
@@ -138,14 +138,10 @@
|
||||
}
|
||||
info.textContent = txt;
|
||||
}
|
||||
} else {
|
||||
if (input.attr('name') === 'location' && $('input[name="online"]')[0].checked) {
|
||||
info.textContent = 'online';
|
||||
} else {
|
||||
info.textContent = input.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// prev/next round buttons
|
||||
|
Reference in New Issue
Block a user