Skip to content

Commit

Permalink
Merge pull request #87 from cburroughs/js-tabs
Browse files Browse the repository at this point in the history
js ui tab fixes
  • Loading branch information
bmatheny committed Apr 12, 2013
2 parents 50b214c + ed9282a commit 5a23bdf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/views/asset/show_logs.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,12 @@
</tfoot>
</table>
</div>
<script type="text/javascript">
jQuery(document).ready(function ($) {
$('#logRefresh').on('click', function(e) {
e.preventDefault();
});
});
</script>
<!-- End Logs -->

9 changes: 9 additions & 0 deletions app/views/asset/show_menu.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,12 @@
</div>
</div>

<script type="text/javascript">
jQuery(document).ready(function ($) {
var anchor = location.href.split('#')[1];
$('a[href=#' + anchor + ']').tab('show');
setTimeout(function() {
$(window).scrollTop(0);
}, 0);
});
</script>

0 comments on commit 5a23bdf

Please sign in to comment.