Skip to content

Commit

Permalink
修正提交
Browse files Browse the repository at this point in the history
  • Loading branch information
heyunpeng committed Aug 19, 2015
1 parent d98f372 commit f8a77e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/views/combinationgame/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function xprint() {
<td>
可用金额
</td>
<td>
<td id="usercoin">
<%if @user%><%=@user.coin%><%end%>
</td>
</tr>
Expand Down Expand Up @@ -250,7 +250,7 @@ function xprint() {
总投注额:<span style="color:red;margin-right:10px" id="coinnums">0</span>
<%= f.hidden_field :totalcoin, id:"cointotal", value:0 %>
<button type="button", style="height:20px;width:60px;margin-right:10px", onclick="resetcoin()">重填</button>
<%= f.submit "下注", style:"height:20px;width:60px", :onclick=>'var r=confirm("确认下注");if(r) resetcoin();return r'%>
<%= f.submit "下注", style:"height:20px;width:60px", :onclick=>'var r=confirm("确认下注");if(r){var t=parseInt(document.getElementById("usercoin").innerHTML);var c=parseInt(document.getElementById("coinnums").innerHTML);document.getElementById("usercoin").innerHTML=(t-c).toString();}return r'%>
</div></td>
</tfoot>
<%end%>
Expand Down
4 changes: 2 additions & 2 deletions app/views/doublegame/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function xprint() {
<td>
可用金额
</td>
<td>
<td id="usercoin">
<%if @user%><%=@user.coin%><%end%>
</td>
</tr>
Expand Down Expand Up @@ -284,7 +284,7 @@ function xprint() {
总投注额:<span style="color:red;margin-right:10px" id="coinnums">0</span>
<%= f.hidden_field :totalcoin, id:"cointotal", value:0 %>
<button type="button", style="height:20px;width:60px;margin-right:10px", onclick="resetcoin()">重填</button>
<%= f.submit "下注", style:"height:20px;width:60px", :onclick=>'var r=confirm("确认下注");if(r) resetcoin();return r'%>
<%= f.submit "下注", style:"height:20px;width:60px", :onclick=>'var r=confirm("确认下注");if(r){var t=parseInt(document.getElementById("usercoin").innerHTML);var c=parseInt(document.getElementById("coinnums").innerHTML);document.getElementById("usercoin").innerHTML=(t-c).toString();}return r'%>
</div></td>
</tfoot>
<%end%>
Expand Down
4 changes: 2 additions & 2 deletions app/views/singlegame/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function xprint() {
<td>
可用金额
</td>
<td>
<td id="usercoin">
<%if @user%><%=@user.coin%><%end%>
</td>
</tr>
Expand Down Expand Up @@ -331,7 +331,7 @@ function xprint() {
总投注额:<span style="color:red;margin-right:10px" id="coinnums">0</span>
<%= f.hidden_field :totalcoin, id:"cointotal", value:0 %>
<button type="button", style="height:20px;width:60px;margin-right:10px", onclick="resetcoin()">重填</button>
<%= f.submit "下注", style:"height:20px;width:60px", :onclick=>'var r=confirm("确认下注");if(r) resetcoin();return r'%>
<%= f.submit "下注", style:"height:20px;width:60px", :onclick=>'var r=confirm("确认下注");if(r){var t=parseInt(document.getElementById("usercoin").innerHTML);var c=parseInt(document.getElementById("coinnums").innerHTML);document.getElementById("usercoin").innerHTML=(t-c).toString();}return r'%>
</div></td>
</tfoot>
<%end%>
Expand Down

0 comments on commit f8a77e5

Please sign in to comment.