[livejournal] r21886: LJSUP-12032: Display social capital in t...
Committer: sboronchiev
LJSUP-12032: Display social capital in the contextual hoverU 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;
