[java-shib-idp2 COMMIT] in /branches/REL_2/src/main/webapp: js/ login.jsp

noreply at shibboleth.net noreply at shibboleth.net
Wed Apr 3 16:38:25 EDT 2013


Author: scantor
Date: Wed Apr  3 16:38:25 2013
New Revision: 3161

URL: http://svn.shibboleth.net/view/java-shib-idp2?rev=3161&view=rev
Log:
Remove scripts relying on jquery.

Modified:
    branches/REL_2/src/main/webapp/js/
    branches/REL_2/src/main/webapp/login.jsp

Modified: branches/REL_2/src/main/webapp/login.jsp
URL: http://svn.shibboleth.net/view/java-shib-idp2/branches/REL_2/src/main/webapp/login.jsp?rev=3161&r1=3160&r2=3161&view=diff
==============================================================================
--- branches/REL_2/src/main/webapp/login.jsp (original)
+++ branches/REL_2/src/main/webapp/login.jsp Wed Apr  3 16:38:25 2013
@@ -35,12 +35,12 @@
 
               <section>
                 <label for="username">Username</label>
-                <input class="form-element form-field" name="j_username" type="text" value="username" />
+                <input class="form-element form-field" name="j_username" type="text" value="">
               </section>
 
               <section>
                 <label for="password">Password</label>
-                <input class="form-element form-field" name="j_password" type="password" value="&#149;&#149;&#149;&#149;&#149;&#149;&#149;&#149;">
+                <input class="form-element form-field" name="j_password" type="password" value="">
               </section>
 
               <section>
@@ -86,42 +86,6 @@
         </div>
       </footer>
     </div>
-
-    <script src="<%= request.getContextPath()%>/js/jquery-1.8.1.min.js"></script>
-    <script src="<%= request.getContextPath()%>/js/jquery-ui-1.8.23.min.js"></script>
-    <script>
-      $(document).ready(function () {
-
-        // Placeholder script
-        inputFields = $("#login input");
-
-        inputFields.each(function () {
-          var inputField   = $(this),
-              defaultValue = inputField.val();
-
-          inputField
-            .focus(function () {
-              var thisInput = $(this);
-
-              if ( thisInput.val() == defaultValue ) {
-                thisInput.addClass('form-field-focus').val('');
-              }
-            })
-            .blur(function () {
-              var thisInput = $(this);
-
-              if ( !thisInput.val() ) {
-                thisInput.removeClass('form-field-focus').attr('value', defaultValue);
-              }
-            });            
-        });
-        
-        // Autofocus username field
-        inputFields.first().focus();
-        
-        // Add "last" class to footer nav
-        $(".footer-links a:last-child").addClass("last");
-      });
-    </script>
+    
   </body>
 </html>



More information about the commits mailing list