mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-27 04:18:49 +01:00
Fix context state change
This commit is contained in:
parent
acad0596be
commit
550a0e4955
2 changed files with 3 additions and 4 deletions
|
|
@ -92,8 +92,7 @@ class ContextsController < ApplicationController
|
|||
|
||||
if @context.save
|
||||
if boolean_param('wants_render')
|
||||
@context_state_changed = ((@orgininal_context_hidden || false) != @context.hidden?)
|
||||
puts "CHANGED: #{@original_context_hidden}, #{@context.hidden?}, #{(@orgininal_context_hidden == @context.hidden?)}"
|
||||
@context_state_changed = (@original_context_hidden != @context.hidden?)
|
||||
@new_state = (@context.hidden? ? "hidden" : "active") if @context_state_changed
|
||||
respond_to do |format|
|
||||
format.js
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue