small fix for portfolio
This commit is contained in:
parent
47772a6417
commit
65a5a1302a
|
@ -50,7 +50,7 @@
|
||||||
<%= render :partial => "dashboard_header" %>
|
<%= render :partial => "dashboard_header" %>
|
||||||
<h3 class="header-title">Employee Portfolio</h3>
|
<h3 class="header-title">Employee Portfolio</h3>
|
||||||
<hr>
|
<hr>
|
||||||
<%= form_for @profile, url: {:action => "updateprofile"}, html: {:class => "form-horizontal main-forms"} do |f| %>
|
<%= form_for @profile, url: {:action => "updateprofile"}, html: {:class => "form-horizontal main-forms", :id => "portfolioForm"} do |f| %>
|
||||||
|
|
||||||
<ul class="nav nav-pills language-nav">
|
<ul class="nav nav-pills language-nav">
|
||||||
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
||||||
|
@ -193,4 +193,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function() {
|
||||||
|
$("#portfolioForm").submit(function() {
|
||||||
|
$(this).find(":input").filter(function(){ return !this.value; }).attr("disabled", "disabled");
|
||||||
|
return true; // ensure form still submits
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
Loading…
Reference in New Issue