Commit a8f70e04 authored by Olga Brani's avatar Olga Brani
Browse files

Fix project focus bug

parent 94b9be98
...@@ -243,6 +243,7 @@ table.alt-style tr th.desc a { background:url(../images/arrow_th_bg.png) no- ...@@ -243,6 +243,7 @@ table.alt-style tr th.desc a { background:url(../images/arrow_th_bg.png) no-
table.alt-style tr:nth-child(2n) td { background:#F2F2F2 } table.alt-style tr:nth-child(2n) td { background:#F2F2F2 }
dl.alt-style dt { width:30%; float:left; color:#3582AC; font-weight:normal;} dl.alt-style dt { width:30%; float:left; color:#3582AC; font-weight:normal;}
dl.alt-style dt:nth-child(2n) { background:black; } dl.alt-style dt:nth-child(2n) { background:black; }
dl.alt-style dd { overflow:hidden; }
.projects { padding-bottom:30px; position:relative; } .projects { padding-bottom:30px; position:relative; }
.projects h2 span { color:#3582AC;} .projects h2 span { color:#3582AC;}
.projects h2 em { float:right; } .projects h2 em { float:right; }
...@@ -491,7 +492,9 @@ table .msg-wrap .dialog { position:absolute; border:1px dashed #ccc; padd ...@@ -491,7 +492,9 @@ table .msg-wrap .dialog { position:absolute; border:1px dashed #ccc; padd
table .msg-wrap .dialog .submit { min-width:30px; padding:5px 22px; } table .msg-wrap .dialog .submit { min-width:30px; padding:5px 22px; }
table .msg-wrap .dialog .no.submit { float:right; } table .msg-wrap .dialog .no.submit { float:right; }
table.alt-style .centered { text-align:center; } table.alt-style .centered { text-align:center; }
table.alt-style form.link-like { float:none } table.alt-style form.link-like { float:none}
table.alt-style .project_action div:first-child form { margin:0; }
form.quotas-form span.error-msg span { display:block; color:red; } form.quotas-form span.error-msg span { display:block; color:red; }
form.quotas-form span.error-msg em, form.quotas-form span.error-msg em,
form.quotas-form span.error-msg:hover em { background-position:-58px -3px; } form.quotas-form span.error-msg:hover em { background-position:-58px -3px; }
......
...@@ -322,17 +322,13 @@ $(document).ready(function() { ...@@ -322,17 +322,13 @@ $(document).ready(function() {
return false; return false;
} }
if ($('.quotas-form .group .form-row.with-errors').length>0 ){
$('.quotas-form .group .form-row.with-errors input[type="text"]')[0].focus();
return false;
}
}); });
$('.quotas-form .form-row.with-errors input[type="text"]').first().focus();
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<h2>CREATE PROJECT</h2> <h2>CREATE PROJECT</h2>
{% if show_form %} {% if show_form %}
<form action="?verify=1#top" method="post" class="withlabels quotas-form" id="group_create_form">{% csrf_token %} <form action="?verify=1" method="post" class="withlabels quotas-form" id="group_create_form">{% csrf_token %}
<fieldset class="with-info" id="top"> <fieldset class="with-info" id="top">
<legend> <legend>
...@@ -153,7 +153,8 @@ ...@@ -153,7 +153,8 @@
{% else %} {% else %}
value = "{% get_grant_value rname form %}" value = "{% get_grant_value rname form %}"
{% endif %} {% endif %}
/> autocomplete="off"
>
<span class="extra-img">&nbsp;</span> <span class="extra-img">&nbsp;</span>
<span class="info"><em>more info</em><span>{{ rdata.help_text_input_each }}</span></span> <span class="info"><em>more info</em><span>{{ rdata.help_text_input_each }}</span></span>
</p> </p>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment