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

Unified Diff: static/js/index.js

Issue 29328921: Issue 2844 - cosmetic fixes and adjustments to ABP for Microsoft Edge subscription page (Closed)
Patch Set: remove bullet point Created Oct. 8, 2015, 10:37 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 | « static/css/index-desktop.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: static/js/index.js
===================================================================
--- a/static/js/index.js
+++ b/static/js/index.js
@@ -46,6 +46,7 @@
function initSubscriptionForm(subscriptionElement)
{
var emailTextbox = subscriptionElement.querySelectorAll(".subscribe-textbox")[0];
+ var reset = subscriptionElement.querySelectorAll(".reset-form")[0];
// IE9 + Safari iOS
if (!("placeholder" in document.createElement("input"))
@@ -115,6 +116,12 @@
request.send(params);
return false;
}, false);
+
+ addListener(reset, "click", function()
+ {
+ formElement.removeAttribute("class");
+ return false;
+ }, false);
}
var visibleTab;
« no previous file with comments | « static/css/index-desktop.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld