Author: Bavencoff Date: 2013-05-17 11:51:28 +0200 (Fri, 17 May 2013) New Revision: 163 Url: http://forge.codelutin.com/projects/franciaflex-magalie/repository/revisions... Log: refs #2431 : user experience Modified: trunk/magalie-web/src/main/webapp/WEB-INF/content/deliver-requested-article-input.jsp trunk/magalie-web/src/main/webapp/css/magalie-ck3x.css trunk/magalie-web/src/main/webapp/js/receive-article-input.js trunk/magalie-web/src/main/webapp/js/withdraw-item-input.js Modified: trunk/magalie-web/src/main/webapp/WEB-INF/content/deliver-requested-article-input.jsp =================================================================== --- trunk/magalie-web/src/main/webapp/WEB-INF/content/deliver-requested-article-input.jsp 2013-05-17 09:38:46 UTC (rev 162) +++ trunk/magalie-web/src/main/webapp/WEB-INF/content/deliver-requested-article-input.jsp 2013-05-17 09:51:28 UTC (rev 163) @@ -24,13 +24,21 @@ <%@ taglib prefix="s" uri="/struts-tags" %> <s:if test="requestedList"> + <head> + <script type="text/javascript"> + $(document).ready(function () { + $("#requestedArticle").focus(); + }); + </script> + </head> + <p> Vous êtes affecté à la liste <s:property value="requestedList.code" /> </p> <s:url namespace="/" action="deliver-requested-article" id="deliverRequestedArticleUrl"> <s:param name="listType" value="%{requestedList.listType}" /> </s:url> - <s:a href="%{deliverRequestedArticleUrl}" cssClass="btn btn-block">Demander un article à servir</s:a> + <s:a href="%{deliverRequestedArticleUrl}" cssClass="btn btn-block" id="requestedArticle" >Demander un article à servir</s:a> </s:if> <s:else> <s:iterator value="listTypes" var="listType"> Modified: trunk/magalie-web/src/main/webapp/css/magalie-ck3x.css =================================================================== --- trunk/magalie-web/src/main/webapp/css/magalie-ck3x.css 2013-05-17 09:38:46 UTC (rev 162) +++ trunk/magalie-web/src/main/webapp/css/magalie-ck3x.css 2013-05-17 09:51:28 UTC (rev 163) @@ -33,6 +33,9 @@ height: 320px; overflow: auto; background-color: white; + margin-top: 30px; + margin-left: 5px; + margin-right: 5px; } .dl-horizontal dt, @@ -52,21 +55,5 @@ left: 10px; right: auto; } -} -/* -@media screen and (min-width: 300px) and (min-height: 400px) and (max-width: 480px) and (max-height: 640px) and (orientation: portrait) { - -body { - background-color: grey; } - -#container { - background-color: white; - position: absolute; - left: 20px; - top: 20px; -} - -} -*/ \ No newline at end of file Modified: trunk/magalie-web/src/main/webapp/js/receive-article-input.js =================================================================== --- trunk/magalie-web/src/main/webapp/js/receive-article-input.js 2013-05-17 09:38:46 UTC (rev 162) +++ trunk/magalie-web/src/main/webapp/js/receive-article-input.js 2013-05-17 09:51:28 UTC (rev 163) @@ -154,6 +154,7 @@ this.refreshLocations(); this.refreshForm(); this.refreshButtons(); + $('#receive-article_locationBarcode').focus(); } }; Modified: trunk/magalie-web/src/main/webapp/js/withdraw-item-input.js =================================================================== --- trunk/magalie-web/src/main/webapp/js/withdraw-item-input.js 2013-05-17 09:38:46 UTC (rev 162) +++ trunk/magalie-web/src/main/webapp/js/withdraw-item-input.js 2013-05-17 09:51:28 UTC (rev 163) @@ -177,6 +177,7 @@ this.refreshLocations(); this.refreshForm(); this.refreshButtons(); + $('#withdraw-item_locationBarcode').focus(); } };