Skip to content

Commit

Permalink
Don't check dirty fields on apply changes button
Browse files Browse the repository at this point in the history
  • Loading branch information
fcsonline committed Mar 14, 2013
1 parent 96c0779 commit 620739c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/tolk/actions.js
Expand Up @@ -24,7 +24,7 @@ $(function () {
$(this).addClass("dirty");
});

$("input.save").click(function () {
$("input.save, input.apply").click(function () {
window.onbeforeunload = null;
});

Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/tolk/application.html.erb
Expand Up @@ -13,7 +13,7 @@
<body>
<div id="container">
<div id="head">
<h1><span class="home"><%= link_to "Tolk", root_path %></span><% if @locale.present? %><span class="locale"><%= link_to @locale.language_name, locale_path(@locale) %></span><% end %><span class="locale"><%= button_to "Apply Changes", dump_all_locales_path, :method => :post %></span></h1>
<h1><span class="home"><%= link_to "Tolk", root_path %></span><% if @locale.present? %><span class="locale"><%= link_to @locale.language_name, locale_path(@locale) %></span><% end %><span class="locale"><%= button_to "Apply Changes", dump_all_locales_path, :method => :post, :class => "apply" %></span></h1>
</div>
<%= yield %>
</div>
Expand Down

0 comments on commit 620739c

Please sign in to comment.