Commit 5effd515 authored by nanahira's avatar nanahira

fixes

parent 6e1792c1
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<input type="text" class="form-control" id="roomname" value="" placeholder="房名"> <input type="text" class="form-control" id="roomname" value="" placeholder="房名">
</div> </div>
<div class="col-lg-1"> <div class="col-lg-1">
<input type="text" class="form-control" id="duelcount" value="" placeholder="决斗局数"> <input type="text" class="form-control" id="duelcount" value="" placeholder="局数">
</div> </div>
<div class="col-lg-3"> <div class="col-lg-3">
<input type="text" class="form-control" id="playername" value="" placeholder="玩家名"> <input type="text" class="form-control" id="playername" value="" placeholder="玩家名">
...@@ -114,7 +114,7 @@ function get_value(name) { ...@@ -114,7 +114,7 @@ function get_value(name) {
return encodeURIComponent($(name).val()); return encodeURIComponent($(name).val());
} }
function getPossibleTextValue(fieldName, realQueryKey) { function getPossibleTextValue(fieldName, queryKey) {
const fullFieldName = `#${fieldName}`; const fullFieldName = `#${fieldName}`;
const realQueryKey = queryKey || fieldName; const realQueryKey = queryKey || fieldName;
return (get_value(fullFieldName) ? `&${realQueryKey}=${get_value(fullFieldName)}` : ""); return (get_value(fullFieldName) ? `&${realQueryKey}=${get_value(fullFieldName)}` : "");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment