diff options
author | Leif Johansson <leifj@sunet.se> | 2010-07-19 18:59:06 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2010-07-19 18:59:06 +0200 |
commit | a6e4369dcc095f7827040df2753d4e193d3b5fdf (patch) | |
tree | ef917211e33510df9a28659da4db5c64f5b9d1a0 | |
parent | 6298cd715dedc7ea55cf2d5c5271abd333093cb5 (diff) |
remove focus
-rw-r--r-- | src/main/webapp/wayf-sunet.jsp | 108 | ||||
-rw-r--r-- | src/main/webapp/wayf-swamid.jsp | 106 |
2 files changed, 0 insertions, 214 deletions
diff --git a/src/main/webapp/wayf-sunet.jsp b/src/main/webapp/wayf-sunet.jsp index a7f7299..7858cdd 100644 --- a/src/main/webapp/wayf-sunet.jsp +++ b/src/main/webapp/wayf-sunet.jsp @@ -143,9 +143,6 @@ <title>Identity Provider Selection</title> <link href="css/reset.css" rel="stylesheet" type="text/css" /> <link href="css/sunet.css" rel="stylesheet" type="text/css" /> - <link rel="stylesheet" title="normal" type="text/css" href="css/ui-lightness/jquery-ui-1.8.2.custom.css"/> - <script language="javascript" type="text/javascript" src="js/jquery-1.4.2.min.js"></script> - <script language="javascript" type="text/javascript" src="js/jquery-ui-1.8.2.custom.min.js"></script> <link href="wayf-sunet.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" charset="utf-8"> var is_ssl = ("https:" == document.location.protocol); @@ -305,110 +302,5 @@ </div> </div> </div> -<logic:present name="showComments" scope="Request"> - -<!--PROGRAMMING NOTE - - We need to program the on changed selector. Note that option.InnterText only - works on IE, options.remove doesn't work on Firefox, and that - options.add doesn't work on Safari. Hence the somewhat strange manipulations - to delete & populate the list of options. - - X is the select object for the right hand table - Selected is the name selected in the left hand table - ---> - -</logic:present> - -<logic:present name="siteLists" scope="request"> -<script language="javascript" type="text/javascript"> -<!-- - -function changedFed(X, Selected) { - - <logic:notPresent name="singleSiteList" scope="request"> - - while (X.length > 0) { - X.options[(X.length-1)] = null; - } - - - <logic:iterate id="siteset" name="siteLists"> - if (Selected == "<jsp:getProperty name="siteset" property="name"/>") { - var opt; - <logic:iterate id="site" name="siteset" property="sites"> - opt = new Option ("<jsp:getProperty name="site" property="displayName" />"); - X.options[X.length] = opt; - opt.value = "<jsp:getProperty name="site" property="name" />"; - </logic:iterate> - } - </logic:iterate> - - if (Selected == "ALL") { - var opt; - - <logic:present name="sites" scope="request"> - <logic:iterate id="site" name="sites"> - opt = new Option("<jsp:getProperty name="site" property="displayName" />"); - X.options[X.length] = opt; - opt.value = "<jsp:getProperty name="site" property="name" />"; - </logic:iterate> - </logic:present> - - <logic:notPresent name="sites" scope="request"> - <logic:iterate id="siteset" name="siteLists"> - <logic:iterate id="site" name="siteset" property="sites"> - opt = new Option ("<jsp:getProperty name="site" property="displayName" />"); - X.options[X.length] = opt; - opt.value = "<jsp:getProperty name="site" property="name" />"; - </logic:iterate> - </logic:iterate> - </logic:notPresent> - } - - </logic:notPresent> - -} ---> -</script> -</logic:present> - -<logic:present name="sites" scope="request"> - <script language="javascript" type="text/javascript"> -$(function() { - $('#origin').focus(); -}); - </script> - - <!-- script language="javascript" type="text/javascript"> -$(function() { - var idps = [ -<logic:iterate id="site" name="sites"> - { - label: "<%= ((edu.internet2.middleware.shibboleth.wayf.IdPSite)site).getDisplayName().replace("\n","").toString() %>", - value: "<jsp:getProperty name="site" property="name" />" - }, -</logic:iterate> - ]; - $('#originSearch').autocomplete({ - minLength: 0, - source: idps, - focus: function(event, ui) { - $('#originSearch').val(ui.item.label); - return false; - }, - select: function(event, ui) { - $('#originSearch').val(ui.item.label); - $('#origin').val(ui.item.value); - return false; - } - }); - $('#originSearch').focus(); - //$('.button').button(); - //$('select').selectmenu({style: 'dropdown'}); -}); - </script --> -</logic:present> </body> </html> diff --git a/src/main/webapp/wayf-swamid.jsp b/src/main/webapp/wayf-swamid.jsp index 300d630..9a7b989 100644 --- a/src/main/webapp/wayf-swamid.jsp +++ b/src/main/webapp/wayf-swamid.jsp @@ -42,9 +42,6 @@ <head> <title>Identity Provider Selection</title> <link rel="stylesheet" title="normal" type="text/css" href="wayf-swamid.css"/> - <link rel="stylesheet" title="normal" type="text/css" href="css/ui-lightness/jquery-ui-1.8.2.custom.css"/> - <script language="javascript" type="text/javascript" src="js/jquery-1.4.2.min.js"></script> - <script language="javascript" type="text/javascript" src="js/jquery-ui-1.8.2.custom.min.js"></script> </head> <body> @@ -166,108 +163,5 @@ If you need assistance or require information send an e-mail to <a href="mailto: </p> </div> </div> - -<logic:present name="siteLists" scope="request"> -<script language="javascript" type="text/javascript"> -<!-- - -function changedFed(X, Selected) { - - <logic:notPresent name="singleSiteList" scope="request"> - - while (X.length > 0) { - X.options[(X.length-1)] = null; - } - - - <logic:iterate id="siteset" name="siteLists"> - if (Selected == "<jsp:getProperty name="siteset" property="name"/>") { - var opt; - <logic:iterate id="site" name="siteset" property="sites"> - opt = new Option ("<jsp:getProperty name="site" property="displayName" />"); - X.options[X.length] = opt; - opt.value = "<jsp:getProperty name="site" property="name" />"; - </logic:iterate> - } - </logic:iterate> - - if (Selected == "ALL") { - var opt; - - <logic:present name="sites" scope="request"> - <logic:iterate id="site" name="sites"> - opt = new Option("<jsp:getProperty name="site" property="displayName" />"); - X.options[X.length] = opt; - opt.value = "<jsp:getProperty name="site" property="name" />"; - </logic:iterate> - </logic:present> - - <logic:notPresent name="sites" scope="request"> - <logic:iterate id="siteset" name="siteLists"> - <logic:iterate id="site" name="siteset" property="sites"> - opt = new Option ("<jsp:getProperty name="site" property="displayName" />"); - X.options[X.length] = opt; - opt.value = "<jsp:getProperty name="site" property="name" />"; - </logic:iterate> - </logic:iterate> - </logic:notPresent> - } - - </logic:notPresent> - -} ---> -</script> -</logic:present> - -<logic:present name="sites" scope="request"> - -<logic:present name="showComments" scope="Request"> - <!-- Load the autosuggest code. - - PROGRAMMING NOTE - the "ie6Hack" is to do with an issue in ie6 in which the - psuedo drop down floats below the real dropdown. The hack is that we jsut disable - the real drop down when the pseudo one is about. This can seem weird for some - layouts and so if you are not deploying against ie6 you can just send an - empty array. - --> -</logic:present> - - <script language="javascript" type="text/javascript"> -$(function() { - $('#origin').focus(); -}); - </script> - <!-- script language="javascript" type="text/javascript"> -$(function() { - var idps = [ -<logic:iterate id="site" name="sites"> - { - label: "<%= ((edu.internet2.middleware.shibboleth.wayf.IdPSite)site).getDisplayName().replace("\n","").toString() %>", - value: "<jsp:getProperty name="site" property="name" />" - }, -</logic:iterate> - ]; - $('#originSearch').autocomplete({ - minLength: 0, - source: idps, - focus: function(event, ui) { - $('#originSearch').val(ui.item.label); - return false; - }, - select: function(event, ui) { - $('#originSearch').val(ui.item.label); - $('#origin').val(ui.item.value); - return false; - } - }); - $('#originSearch').focus(); - //$('.button').button(); - //$('select').selectmenu({style: 'dropdown'}); -}); - </script --> -</logic:present> - - </body> </html> |