<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>Imran Hussain pushed to branch master at <a href="https://projects.sucs.org/sucssite/sucs-site">sucssite / sucs-site</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://projects.sucs.org/sucssite/sucs-site/commit/9d09d161a40d5ce98e85b6d6f1dc0831b1a828a1">9d09d161</a></strong>
<div>
<span>by Imran Hussain</span>
<i>at 2015-10-12T19:48:19Z</i>
</div>
<pre class='commit-message'>Fix addresses not to being inserted into the textarea with line breaks</pre>
</li>
<li>
<strong><a href="https://projects.sucs.org/sucssite/sucs-site/commit/270da5061dc4d270995a0f84c4233517dbee9b37">270da506</a></strong>
<div>
<span>by Imran Hussain</span>
<i>at 2015-10-12T20:04:41Z</i>
</div>
<pre class='commit-message'>Merge branch 'master' into 'master'

Fix addresses not to being inserted into the textarea with line breaks

See merge request !30</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
htdocs/js/signup.js
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://projects.sucs.org/sucssite/sucs-site/compare/15751affc636bef0012b0e8887575f692edafbc7...270da5061dc4d270995a0f84c4233517dbee9b37#diff-0'>
<strong>
htdocs/js/signup.js
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/htdocs/js/signup.js
</span><span style="color: #000000;background-color: #ddffdd">+++ b/htdocs/js/signup.js
</span><span style="color: #aaaaaa">@@ -214,7 +214,16 @@ $(function(){
</span>   
        //populate the address box when an address is selected
        $("select#addsel").change(function(){
-               $("textarea#address").val($('select#addsel').val().replace(/, /g,'\n'));
<span style="color: #000000;background-color: #ddffdd">+        
+               // everything is shit and will strip out the line breaks
+               // so we have to do weird shit with innerHTML
+       
+               // store the entire options as e
+               var e = document.getElementById("addsel");
+               // store the selected address's innerHTML as strUser (because stackpver flow copy and paste)
+               var strUser = e.options[e.selectedIndex].innerHTML;
+               // set the text area to the strUser var
+               $("textarea#address").text( strUser );
</span>           $('div#addressmessage').attr("style","color:green; float:right; clear:right;");
                $('div#addressmessage').html("OK");
                validation['address']=true;
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://projects.sucs.org/sucssite/sucs-site/compare/15751affc636bef0012b0e8887575f692edafbc7...270da5061dc4d270995a0f84c4233517dbee9b37">View it on GitLab</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":["merge_requests","issues","commit"],"url":"https://projects.sucs.org/sucssite/sucs-site/compare/15751affc636bef0012b0e8887575f692edafbc7...270da5061dc4d270995a0f84c4233517dbee9b37"}}</script>
</p>
</div>
</body>
</html>