From 0b726a41d42e032278ae1b547cd39943a4e7e3ed Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Wed, 3 Jun 2015 14:03:15 +0200 Subject: [PATCH] add: unperform clue action --- app/assets/javascripts/app/controllers/layout_ref.js.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/layout_ref.js.coffee b/app/assets/javascripts/app/controllers/layout_ref.js.coffee index 6c2d587bc..5d2504469 100644 --- a/app/assets/javascripts/app/controllers/layout_ref.js.coffee +++ b/app/assets/javascripts/app/controllers/layout_ref.js.coffee @@ -991,7 +991,9 @@ class cluesRef extends App.ControllerContent container = $(clue.container) container.removeClass('selected-clue') - # maybe undo perform + # undo click perform by doing it again + if clue.action + @perform clue.action, container @el.find('.clue').remove()