修改竞赛新建作品按钮无反应的BUG

This commit is contained in:
sw 2014-09-18 13:54:03 +08:00
parent 41329c8cc5
commit 0a6364f669
1 changed files with 5 additions and 5 deletions

View File

@ -57,19 +57,19 @@
var workDescription = $("#softapplication_application_developers").val();
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');
return false;
}
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');
return true;
}
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');
return false;
}
@ -221,8 +221,8 @@
</fieldset>
</fieldset></br>
<div class="align-center" style="padding-top: -3px; padding-bottom: 8px">
<!--<input type="button" class="enterprise" value="<%=l(:button_create) %>" onclick="submit_new_softapplication();" >-->
<%= submit_tag l(:button_create) %>
<input type="button" class="enterprise" value="<%=l(:button_create) %>" onclick="submit_new_softapplication();" >
<%#= submit_tag l(:button_create) %>
<%= submit_tag l(:button_cancel),
:name => nil,
:onclick => "cancel();",