Skip to content

Commit

Permalink
Uses lichess.spinnerHtml in loading spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
Unihedro committed Feb 18, 2016
1 parent d39f95a commit d5b6db9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions public/javascripts/user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
$(function() {

var $searchForm = $('form.search.public');
var loadingSpinner = '<div class="spinner"><svg viewBox="0 0 40 40"><circle cx="20" cy="20" r="18" fill="none"></circle></svg></div>';

if ($searchForm.length) {
$searchInput = $searchForm.find('input.search_user');
Expand All @@ -20,7 +19,7 @@ $(function() {
$(this).click(function() {
var $zone = $("div.user_show .mod_zone");
if ($zone.is(':visible')) $zone.hide();
else $zone.html(loadingSpinner).show();
else $zone.html(lichess.spinnerHtml).show();
$zone.load($(this).attr("href"), function() {
$zone.find('form.fide_title select').on('change', function() {
$(this).parent('form').submit();
Expand Down

0 comments on commit d5b6db9

Please sign in to comment.