diff --git a/public/_includes/_scripts-include.jade b/public/_includes/_scripts-include.jade index b068a879c1..20d59ae707 100644 --- a/public/_includes/_scripts-include.jade +++ b/public/_includes/_scripts-include.jade @@ -49,5 +49,4 @@ if current.path[0] == "docs" _st('install','VsuU7kH5Hnnj9tfyNvfK'); -script(src="//www.gstatic.com/feedback/api.js" type="text/javascript") - +script(src="//www.gstatic.com/feedback/api.js" type="text/javascript") \ No newline at end of file diff --git a/public/docs/ts/latest/help-new.jade b/public/docs/ts/latest/help-new.jade index 42f4561286..1034233e75 100644 --- a/public/docs/ts/latest/help-new.jade +++ b/public/docs/ts/latest/help-new.jade @@ -1,24 +1,8 @@ div(flex) p. What's your question about? - select#dropdown(name="Angular Version" class="dropdown") + select#feedback-dropdown(name="Angular Version") option(value="Angular2") Angular2 option(value="AngularJS") AngularJS - button#btn(class="btn"). + button#feedback-btn. Submit - -script(src="//www.gstatic.com/feedback/api.js" type="text/javascript") - -script. - var btn = document.getElementById("btn"); - var submitFeedback = function() { - var dropdown = document.getElementById("dropdown"); - var configuration = { - 'productId': 'Angular', - 'authuser': '1', - 'bucket': dropdown.options[dropdown.selectedIndex].value - } - userfeedback.api.startFeedback(configuration); - } - btn.addEventListener("click", submitFeedback); -