views/index.erb in neerajdotname-javascript_lab-0.0.14 vs views/index.erb in neerajdotname-javascript_lab-0.0.15

- old
+ new

@@ -3,10 +3,12 @@ <form action='#' name='lab'> <p> <select name='javascript_library' onchange="location = this.options[this.selectedIndex].value"> <option value=''>please select </option> <option value=''> </option> + <%=create_option('nojsl','No javascript library')%> + <option value=''> </option> <optgroup label='jQuery'> <%=create_option('jquery-1.3.2','jQuery 1.3.2')%> <%=create_option('jquery-1.3.1','jQuery 1.3.1')%> <%=create_option('jquery-1.3','jQuery 1.3')%> <%=create_option('jquery-1.2.6','jQuery 1.2.6')%> @@ -25,11 +27,11 @@ <%=create_option('prototype-1.5.1','prototype 1.5.1')%> <%=create_option('prototype-1.5','prototype 1.5')%> </optgroup> </select> - <% unless params[:j].nil? %> + <% if !params[:j].nil? && params[:j] != 'nojsl' %> <a href="/javascripts/<%=params[:j]%>.js" target='_blank'>source code</a> <% end %> </p> <% unless params[:j].nil? %> <p> @@ -53,8 +55,8 @@ <strong>Log output</strong> <a href='#' onclick='clear_log();return false;'>(clear log)</a> <div id='log_output'> </div> </div> - <% end %> + <% end %><D-e> <div style='clear:both;'></div> </div>