Index: /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/model/ajax.py
===================================================================
--- /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/model/ajax.py	(revision 38745)
+++ /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/model/ajax.py	(working copy)
@@ -960,10 +960,18 @@
         return json.dumps(rtn)
 
     def current_statistics_data(self, time_str, value):
-        if type(value) == float:
-            value_list = [time_str, value]
-        else:
-            value_list = [time_str, num(value)]
+        def num(s):
+            if not s:
+                return 0
+            try:
+                return int(s)
+            except ValueError:
+                try:
+                    return float(s)
+                except ValueError:
+                    # not a number string
+                    return 0
+        value_list = [time_str, num(value)]
         return value_list
 
     def get_sql_select_info(self, table_name, instance):
@@ -1515,6 +1523,18 @@
                         table_name = "slb_DefaultPolicy"
                 if table_name in ['SystemInterface', 'BondInterface']:
                     instance_str = '{"name": "' + instance.id + '"}'
+                if "VirtualService" in table_name and "service_name" in self.request.path_info:
+                    # individual virtual service data
+                    path_split = self.request.path_info.split("/")
+                    service_name = path_split[-1]
+                    table_name = "GlobalVirtualServiceStats"
+                    where_str = " where service_name is %s and" % service_name
+                if "RealService" in table_name and "service_name" in self.request.path_info:
+                    # individual real service data
+                    path_split = self.request.path_info.split("/")
+                    service_name = path_split[-1]
+                    table_name = "GlobalRealServiceStats"
+                    where_str = " where service_name is %s and" % service_name
                 if not instance_str:
                     instance_str = '{}'
                 if start_db == end_db:
Index: /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/media/js/lib/utils/bootstrap.js
===================================================================
--- /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/media/js/lib/utils/bootstrap.js	(revision 38745)
+++ /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/media/js/lib/utils/bootstrap.js	(working copy)
@@ -1662,7 +1662,7 @@
 
       var complete = function () {
         var prevHoverState = that.hoverState
-        that.$element.trigger('shown.bs.' + that.type)
+        null!=that.$element && that.$element.trigger('shown.bs.' + that.type)
         that.hoverState = null
 
         if (prevHoverState == 'out') that.leave(that)
@@ -1915,7 +1915,7 @@
     var that = this
     clearTimeout(this.timeout)
     this.hide(function () {
-      that.$element.off('.' + that.type).removeData('bs.' + that.type)
+      null!=that.$element && that.$element.off('.' + that.type).removeData('bs.' + that.type)
       if (that.$tip) {
         that.$tip.detach()
       }
