Browse Source

busy icon color

master
Pascal Gloor 5 years ago
parent
commit
cc177cbb39
2 changed files with 4 additions and 2 deletions
  1. 1
    1
      www/index.html
  2. 3
    1
      www/js/autodoc.js

+ 1
- 1
www/index.html View File

<button type="button" class="autodoc_ajax_off btn btn-secondary disabled"> <button type="button" class="autodoc_ajax_off btn btn-secondary disabled">
<i class="fas fa-signal"></i> <i class="fas fa-signal"></i>
</button> </button>
<button type="button" class="autodoc_ajax_on d-none btn btn-primary disabled">
<button type="button" class="autodoc_ajax_on d-none btn btn-warning disabled">
<i class="fas fa-sync fa-spin"></i> <i class="fas fa-sync fa-spin"></i>
</button> </button>
</div> </div>

+ 3
- 1
www/js/autodoc.js View File

}); });
} }



// handle ajax busy icon
function loader_icon_on() { function loader_icon_on() {
conf.busy++; conf.busy++;
} }


function load_icon_off() {
function loader_icon_off() {
setTimeout(function() { conf.busy--; }, 1000); setTimeout(function() { conf.busy--; }, 1000);
} }



Loading…
Cancel
Save