Commit 26bb63d7 authored by Ralph Bean's avatar Ralph Bean

Fixed a typo.

parent 0d6abd15
...@@ -417,19 +417,17 @@ class PyrasiteWindow(Gtk.Window): ...@@ -417,19 +417,17 @@ class PyrasiteWindow(Gtk.Window):
def test(): def test():
# Inject jQuery # Inject jQuery
jquery = file('jquery-1.7.1.min.js') jquery = file('jquery-1.7.1.min.js')
self.details_view.execute_script(jquery.read()) self.info_view.execute_script(jquery.read())
jquery.close() jquery.close()
# Inject Sparkline # Inject Sparkline
sparkline = file('jquery.sparkline.min.js') sparkline = file('jquery.sparkline.min.js')
self.details_view.execute_script(sparkline.read()) self.info_view.execute_script(sparkline.read())
sparkline.close() sparkline.close()
# FIXME: alert works, sparkline does not... self.info_view.execute_script("""
self.details_view.execute_script("""
jQuery(document).ready(function() { jQuery(document).ready(function() {
jQuery('#cpu_graph').sparkline(); jQuery('#cpu_graph').sparkline([10,8,3,7,4,4,1]);
alert('FOO');
}); });
""") """)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment