Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: head.html

Issue 5119431676002304: Issue 1128 - Added ADC as supporter to Manifesto page (Closed)
Patch Set: Created Aug. 19, 2014, 9:22 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « body.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: head.html
===================================================================
--- a/head.html
+++ b/head.html
@@ -219,7 +219,8 @@
margin-top: 6px;
}
-#join-org strong
+#join-org strong,
+#supporters-more-link
{
font-weight: normal;
font-size: 15px;
@@ -227,6 +228,11 @@
text-decoration: underline;
}
+#supporters-more
+{
+ margin-bottom: 20px;
+}
+
#social button
{
width: 100%;
@@ -487,7 +493,11 @@
{
if ("addEventListener" in obj)
{
- obj.addEventListener(type, listener, useCapture);
+ obj.addEventListener(type, function(ev)
+ {
+ if (listener(ev) === false)
+ ev.preventDefault();
+ }, useCapture);
}
else
{
@@ -496,7 +506,8 @@
obj.attachEvent("on" + type, function()
{
- listener(event);
+ if (listener(event) === false)
+ event.returnValue = false;
});
}
}
@@ -504,6 +515,16 @@
addListener(window, "DOMContentLoaded", function(ev)
{
fetchNumberOfSignees();
+
+ var moreSupporters = document.getElementById("supporters-more-link");
+ addListener(moreSupporters, "click", function(ev)
+ {
+ var overflow = document.getElementById("supporters-overflow");
+ overflow.removeAttribute("hidden");
+ moreSupporters.parentNode.removeChild(moreSupporters);
+
+ return false;
+ }, false);
var readmore = document.getElementById("readmore");
addListener(readmore, "click", function(ev)
@@ -514,8 +535,10 @@
else
fulltext.hidden = "hidden";
- ev.preventDefault();
- ev.stopPropagation();
+ if ("stopPropagation" in ev)
+ ev.stopPropagation();
+
+ return false;
}, false);
var shareTitle = document.getElementById("share-text-title")[textAttr];
@@ -562,6 +585,6 @@
}
}
-addListener(window, "scroll", checkCollapse);
-addListener(window, "resize", checkCollapse);
+addListener(window, "scroll", checkCollapse, false);
+addListener(window, "resize", checkCollapse, false);
--></script>
« no previous file with comments | « body.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld