修改竞赛新建作品按钮无反应的BUG
This commit is contained in:
parent
41329c8cc5
commit
0a6364f669
|
@ -57,19 +57,19 @@
|
||||||
var workDescription = $("#softapplication_application_developers").val();
|
var workDescription = $("#softapplication_application_developers").val();
|
||||||
if(workDescription.length ==0)
|
if(workDescription.length ==0)
|
||||||
{
|
{
|
||||||
$("#span_softapplication_application_developers").text(<%= l(:label_no_softapplication_developers) %>);
|
$("#span_softapplication_application_developers").text("<%= l(:label_no_softapplication_developers) %>");
|
||||||
$("#span_softapplication_application_developers").css('color','#ff0000');
|
$("#span_softapplication_application_developers").css('color','#ff0000');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(workDescription.length <= 125)
|
if(workDescription.length <= 125)
|
||||||
{
|
{
|
||||||
$("#span_softapplication_application_developers").text(<%= l(:label_field_correct) %>);
|
$("#span_softapplication_application_developers").text("<%= l(:label_field_correct) %>");
|
||||||
$("#span_softapplication_application_developers").css('color','#008000');
|
$("#span_softapplication_application_developers").css('color','#008000');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$("#span_softapplication_application_developers").text(<%= l(:label_softapplication_developers_condition) %>);
|
$("#span_softapplication_application_developers").text("<%= l(:label_softapplication_developers_condition) %>");
|
||||||
$("#span_softapplication_application_developers").css('color','#ff0000');
|
$("#span_softapplication_application_developers").css('color','#ff0000');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -221,8 +221,8 @@
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</fieldset></br>
|
</fieldset></br>
|
||||||
<div class="align-center" style="padding-top: -3px; padding-bottom: 8px">
|
<div class="align-center" style="padding-top: -3px; padding-bottom: 8px">
|
||||||
<!--<input type="button" class="enterprise" value="<%=l(:button_create) %>" onclick="submit_new_softapplication();" >-->
|
<input type="button" class="enterprise" value="<%=l(:button_create) %>" onclick="submit_new_softapplication();" >
|
||||||
<%= submit_tag l(:button_create) %>
|
<%#= submit_tag l(:button_create) %>
|
||||||
<%= submit_tag l(:button_cancel),
|
<%= submit_tag l(:button_cancel),
|
||||||
:name => nil,
|
:name => nil,
|
||||||
:onclick => "cancel();",
|
:onclick => "cancel();",
|
||||||
|
|
Loading…
Reference in New Issue