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