Fix new_ui:save_pages

This commit is contained in:
chris 2013-10-20 19:05:19 +08:00
parent 2530dace02
commit a9343e9a82
2 changed files with 4 additions and 2 deletions

View File

@ -28,7 +28,7 @@
<% end -%>
<% if @edit %>
<script>
$(window).load(function(pageslide, item) {
$(window).load(function() {
$('a').not('.nav').on('click', function(e){
e.preventDefault();
});

View File

@ -238,7 +238,9 @@ namespace :new_ui do
end
def save_pages
Page.all(&:save)
Page.all.each do |page|
page.save
end
end
end