Browse Source

Performance tweaks, avoid slow repaints when showing tooltips

pull/178/head
Pēteris Caune 7 years ago
parent
commit
8d6a694711
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
2 changed files with 4 additions and 2 deletions
  1. +2
    -0
      static/css/base.css
  2. +2
    -2
      static/js/checks.js

+ 2
- 0
static/css/base.css View File

@ -59,6 +59,8 @@ body {
.status {
font-size: 24px;
display: inline-block;
width: 24px;
}
.status.icon-up { color: #5cb85c; }


+ 2
- 2
static/js/checks.js View File

@ -175,7 +175,7 @@ $(function () {
return false;
});
$(".integrations img").click(function() {
$(".integrations").on("click", "img", function() {
var isOff = $(this).toggleClass("off").hasClass("off");
var token = $('input[name=csrfmiddlewaretoken]').val();
$.ajax({
@ -254,6 +254,7 @@ $(function () {
$('[data-toggle="tooltip"]').tooltip({
html: true,
container: "body",
title: function() {
var cssClasses = this.getAttribute("class");
if (cssClasses.indexOf("icon-new") > -1)
@ -315,7 +316,6 @@ $(function () {
if (document.title != data.title) {
document.title = data.title;
}
}
});
}


Loading…
Cancel
Save