anchor.diff:  event({leave_space, SpaceName, SpaceId, RowId, OptionId}) ->
       Message = <<"Are you sure you want to leave Space:<br><b>", SpaceName/binary, " ( ", SpaceId/binary, " ) </b>?">>,
       Script = <<"leaveSpace(['", SpaceName/binary, "','", SpaceId/binary, "','", RowId/binary, "','", OptionId/binary, "']);">>,
  -    confirm_popup(Message, Script);
  +    dialog_popup(<<"Leave Space">>, Message, Script);
   
   event({delete_space, SpaceName, SpaceId, RowId, OptionId}) ->
       Message = <<"Are you sure you want to delete Space:<br><b>", SpaceName/binary, " ( ", SpaceId/binary, " ) </b>?">>,
       Script = <<"deleteSpace(['", SpaceName/binary, "','", SpaceId/binary, "','", RowId/binary, "','", OptionId/binary, "']);">>,
  -    confirm_popup(Message, Script);
  +    dialog_popup(<<"Delete Space">>, Message, Script);
   
   event({spaces_table_collapse, OptionId}) ->
       get(?COMET_PID) ! spaces_table_collapse,
  
positive.code: -spec event(Event :: term()) -> no_return().
  %% ====================================================================
  event(init) ->
      case gr_adapter:get_user_spaces(gui_ctx:get_access_token()) of
          {ok, SpaceIds} ->
              gui_jq:wire(#api{name = "createSpace", tag = "createSpace"}, false),
              gui_jq:wire(#api{name = "joinSpace", tag = "joinSpace"}, false),
              gui_jq:wire(#api{name = "leaveSpace", tag = "leaveSpace"}, false),
  
negative.code:     });">>).
  
  
  %% bind_key_to_click/2
  %% ====================================================================
  %% @doc Makes any keypresses of given key to click on selected class.
  