fix for next and save employee portfolio
This commit is contained in:
parent
50d98ae5b9
commit
78f412e50c
|
@ -467,13 +467,13 @@ class RecruitmentsController < PseudoSessionController
|
||||||
if @profile.is_employer?
|
if @profile.is_employer?
|
||||||
redirect_to mydashboard_path
|
redirect_to mydashboard_path
|
||||||
elsif @profile.is_employee?
|
elsif @profile.is_employee?
|
||||||
if params[:commit] == "Next"
|
if params[:commit] == "Next" || params[:commit] == "下一個"
|
||||||
if params[:step] == "step3"
|
if params[:step] == "step3"
|
||||||
redirect_to employee_experience_path
|
redirect_to employee_experience_path
|
||||||
elsif params[:step] == "step1"
|
elsif params[:step] == "step1"
|
||||||
redirect_to employee_academics_path
|
redirect_to employee_academics_path
|
||||||
end
|
end
|
||||||
elsif params[:commit] == "Save"
|
elsif params[:commit] == "Save" || params[:commit] == "儲存"
|
||||||
redirect_to mydashboard_path
|
redirect_to mydashboard_path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -180,9 +180,11 @@
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function() {
|
$(function() {
|
||||||
// $("#portfolioForm").submit(function() {
|
$("#portfolioForm").submit(function() {
|
||||||
// $(this).find(":input").filter(function(){ return !this.value; }).attr("disabled", "disabled");
|
$(this).find(":input").not("textarea.ckeditor").filter(function(){
|
||||||
// return true; // ensure form still submits
|
return !this.value;
|
||||||
// });
|
}).attr("disabled", "disabled");
|
||||||
|
return true; // ensure form still submits
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
|
@ -91,7 +91,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-sm-offset-2 col-sm-10">
|
<div class="col-sm-offset-2 col-sm-10">
|
||||||
<a data-method="delete" data-confirm="Are you sure?" href="/recruit/<%= rec.id.to_s %>/delete_employee_recommendation" class="btn btn-danger"><%= t("recruitment.delete") %></a>
|
<a data-method="delete" data-confirm="Are you sure?" href="/recruit/<%= rec.id.to_s %>/delete_employee_recommendation" class="btn btn-danger"><%= t("delete_") %></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue