hosts: use jquery ui background color animation instead of position
authorTero Marttila <terom@paivola.fi>
Wed, 24 Oct 2012 20:00:12 +0300
changeset 28 9940bc6c0a34
parent 27 38d050c657da
child 29 38265b7d8f62
hosts: use jquery ui background color animation instead of position
pvl/verkko/hosts.py
static/hosts.js
--- a/pvl/verkko/hosts.py	Wed Oct 24 19:54:21 2012 +0300
+++ b/pvl/verkko/hosts.py	Wed Oct 24 20:00:12 2012 +0300
@@ -474,9 +474,13 @@
 
 class RealtimeHandler (web.Handler) :
     TITLE = "Pseudo-Realtime hosts.."
+    CSS = web.Handler.CSS + (
+        'http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css',
+    )
     JS = (
         #"/static/jquery/jquery.js",
         'http://code.jquery.com/jquery-1.8.2.js',
+        'http://code.jquery.com/ui/1.9.0/jquery-ui.js',
         '/static/js/spin.js',
         '/static/hosts.js',
     )
--- a/static/hosts.js	Wed Oct 24 19:54:21 2012 +0300
+++ b/static/hosts.js	Wed Oct 24 20:00:12 2012 +0300
@@ -94,6 +94,8 @@
 
                 if (animate)
                     item.slideDown();
+                else
+                    item.effect("highlight", {}, 'slow');
             });
             
             // update