]> source.dussan.org Git - sonarqube.git/commitdiff
Use jQuery instead of prototypejs in login form
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 3 Oct 2012 09:06:08 +0000 (11:06 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 3 Oct 2012 09:08:58 +0000 (11:08 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/sessions/login.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/sessions/new.html.erb

index 86add65fe92c2a1b98d5a4427918d55b9d94694b..b46ec95f6be8e0603d2ab382f26300aa823115ce 100644 (file)
                                        </form>
                                        <% if flash[:loginerror] %>
                                                <div class="error" style=""> <%= flash[:loginerror]  %></div>
-                                       <% end %>       
-                               </div>                          
+                                       <% end %>
+                               </div>
                        </td>
                </tr>
-       </table>        
-<script type="text/javascript">
-//<![CDATA[
-    $('login').activate();
-//]]>
-</script>
+       </table>
+  <script>$j('#login').focus()</script>
\ No newline at end of file
index f5082f89894ea3f6df0d91c7bcfdfbbdd2d9b729..b887c5ae7f467ea8bb6f2c2437a05e2de61785d3 100644 (file)
@@ -32,8 +32,4 @@
     </td>
   </tr>
 </table>
-<script type="text/javascript">
-//<![CDATA[
-    $('login').activate();
-//]]>
-</script>
+<script>$j('#login').focus();</script>