Question
[Web] Adding Google Analytics to a page via f:labled_text_input
I know we got the extension from 150 chars in LR2.2, but now I'm faced with a silly, annoying issue. Here's my code (yes the code is fine- in fact it's a good example of conditional coding for anyone who cares IMHO)
<br />
<br />Model
<br /> ["nonCSS.useAnalytics"] = false,
<br /> ["nonCSS.Analytics"] = "",
<br />
<br />Views (labels section)
<br />
<br />f:subdivided_sections {
<br /> f:header_section_label {
<br /> title = "Google Analytics Code",
<br /> },
<br /> f:content_column {
<br /> f:checkbox_row {
<br /> title = "Insert Analytics Code",
<br /> bindingValue = "nonCSS.useAnalytics",
<br /> },
<br /> },
<br /> f:labeled_text_input {
<br /> title = "Paste Anaytics Code",
<br /> value = bind "nonCSS.Analytics",
<br /> },
<br />
<br />
<br /> },
<br />
<br />HTML
<br />
<br /><% if model.nonCSS.useAnalytics then %> $model.nonCSS.Analytics <% else %><% end %>
<br />
<br />The code works fine except that when you paste the Google Analytics code into the "Paste Analytics Code" textbox, it opens the ga.js code in a browser window. It's rather annoying.
<br />
<br />Is there a way to suppress the page opening?

