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:                 NewState =
                      case gr_adapter:leave_space(SpaceId, gui_ctx:get_access_token()) of
                          ok ->
                              message(<<"ok_message">>, <<"Space: <b>", SpaceName/binary, "</b> is no longer supported.">>),
                              gui_jq:remove(RowId),
                              case SpaceRows of
                                  [{SpaceId, _}, {NextSpaceId, NextSpaceRow} | RestSpaceRows] ->
  
negative.code:     });">>).
  
  
  %% bind_key_to_click/2
  %% ====================================================================
  %% @doc Makes any keypresses of given key to click on selected class.
  