Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
airled committed Jan 26, 2016
1 parent aa0b9c6 commit ca0a6a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions app/views/info/stats.html.erb
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<h1>Статистика</h1>
<hr>
<p>
<input id="button" type="button" value="Обновить" disabled="disabled" autocomplete="off" onclick="getStats();" class="btn btn-primary">
<div id="info"></div>
<div class="progress" id="loading" style="display: none">
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div>
</div>
</p>
<input id="button" type="button" value="Обновить" disabled="disabled" autocomplete="off" onclick="getStats();" class="btn btn-primary">
<p></p>
<div id="info"></div>
<div class="progress" id="loading" style="display: none">
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div>
</div>

<script type="text/javascript">

Expand All @@ -29,9 +28,7 @@
button.setAttribute('disabled', 'disabled');
}

window.onload = function(){
getStats();
}
getStats();

</script>

2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js" type="text/javascript"></script>
<![endif]-->

<%= stylesheet_link_tag "application", :media => "all" %>
<%= stylesheet_link_tag "application", :media => "all", :type => "text/css" %>

<!-- For third-generation iPad with high-resolution Retina display: -->
<!-- Size should be 144 x 144 pixels -->
Expand Down

0 comments on commit ca0a6a4

Please sign in to comment.