Название вашего журнала (quwiero) wrote in changelog,
Название вашего журнала
quwiero
changelog

[livejournal] r21886: LJSUP-12032: Display social capital in t...

Committer: sboronchiev
LJSUP-12032: Display social capital in the contextual hover
U   trunk/htdocs/js/contextualhover.js
U   trunk/htdocs/stc/lj_base.css
Modified: trunk/htdocs/js/contextualhover.js
===================================================================
--- trunk/htdocs/js/contextualhover.js	2012-05-04 10:45:13 UTC (rev 21885)
+++ trunk/htdocs/js/contextualhover.js	2012-05-04 11:56:17 UTC (rev 21886)
@@ -439,10 +439,12 @@
 
 			new Image().src = this.adriverImages[userType].supplant({ random: Math.random()});
 
+
+			console.log(data);
 			buildObject.socialCap = {
-				value: data.value,
-				first: !!data.first
-			}
+                first: !!data.first
+            }
+            if (data.value) buildObject.socialCap.value = data.value;
 
 			this.element
 				.empty()

Modified: trunk/htdocs/stc/lj_base.css
===================================================================
--- trunk/htdocs/stc/lj_base.css	2012-05-04 10:45:13 UTC (rev 21885)
+++ trunk/htdocs/stc/lj_base.css	2012-05-04 11:56:17 UTC (rev 21886)
@@ -3268,6 +3268,10 @@
 		line-height: 16px;
 		font-size: 12px;
 		}
+		.b-contextualhover .soc_cap IMG{
+			margin:0 2px 0 0;
+			vertical-align: bottom;
+			}
 	.b-contextualhover .input-checkbox {
 		margin-right: 2px;
 		vertical-align: middle;

Tags: css, js, livejournal, quwiero, sboronchiev
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments