Extended tooltip timeout to 10 seconds for all fields.
authorMario Ferraro <fadinlight@gmail.com>
Thu, 09 Jul 2009 10:16:29 +0200
changeset 2575 e319fd52cbc4
parent 2574 402e4a979e77
child 2576 7a1138f8a0e2
Extended tooltip timeout to 10 seconds for all fields. This is because the tooltip currently timesout to fast for people to read the whole stories they can contain. Especially because Surveys can have custom tooltips. Reviewed by: Lennard de Rijk
app/soc/templates/soc/survey/edit.html
app/soc/templates/soc/templatetags/_as_table_row.html
--- a/app/soc/templates/soc/survey/edit.html	Wed Jul 08 15:45:53 2009 +0200
+++ b/app/soc/templates/soc/survey/edit.html	Thu Jul 09 10:16:29 2009 +0200
@@ -78,7 +78,7 @@
     var tooltip_object=null;
     $('#{{ type_id }}').hover(function() {
       if (tooltip_object==null) {
-        tooltip_object = $(tooltip).purr({usingTransparentPNG: true});
+        tooltip_object = $(tooltip).purr({usingTransparentPNG: true,removeTimer: 10000});
       }
     },
     function() {
--- a/app/soc/templates/soc/templatetags/_as_table_row.html	Wed Jul 08 15:45:53 2009 +0200
+++ b/app/soc/templates/soc/templatetags/_as_table_row.html	Thu Jul 09 10:16:29 2009 +0200
@@ -61,7 +61,7 @@
     if (not_fieldset) {
       documented.focus(function() {
         if (tooltip_object==null) {
-          tooltip_object = $(tooltip).purr({usingTransparentPNG: true});
+          tooltip_object = $(tooltip).purr({usingTransparentPNG: true,removeTimer: 10000});
         }
       });
       documented.blur(function() {
@@ -74,7 +74,7 @@
     else {
       documented.find("input").hover(function() {
         if (tooltip_object==null) {
-          tooltip_object = $(tooltip).purr({usingTransparentPNG: true});
+          tooltip_object = $(tooltip).purr({usingTransparentPNG: true,removeTimer: 10000});
         }
       },
       function() {