Sync persona between tabs only if the QR's closed. Close #191
This commit is contained in:
parent
eb4c557d90
commit
84dbb47ea8
@ -1649,7 +1649,7 @@
|
||||
}
|
||||
$.sync('qr.persona', function(persona) {
|
||||
var key, val, _results;
|
||||
if (qr.replies.length !== 1) return;
|
||||
if (!qr.el.hidden) return;
|
||||
_results = [];
|
||||
for (key in persona) {
|
||||
val = persona[key];
|
||||
|
||||
@ -1234,7 +1234,7 @@ qr =
|
||||
$.on input, 'change', -> qr.selected[@name] = @value
|
||||
# sync between tabs
|
||||
$.sync 'qr.persona', (persona) ->
|
||||
return if qr.replies.length isnt 1
|
||||
return unless qr.el.hidden
|
||||
for key, val of persona
|
||||
qr.selected[key] = val
|
||||
$("[name=#{key}]", qr.el).value = val
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user