anchor.diff:  
   %% confirm_popup/2
   %% ====================================================================
  -%% @doc Displays confirm popup using Bootbox API.
  +%% @doc Displays confirm popup using Bootbox API with custom message.
  +%% In case of message confirmation it executes supplied script.
   -spec confirm_popup(Message :: binary(), Script :: binary()) -> binary().
   %% ====================================================================
   confirm_popup(Message, Script) ->
  
positive.code: 
  %% dialog_popup/3
  %% ====================================================================
  %% @doc Displays custom dialog popup using Bootbox API.
  -spec dialog_popup(Title :: binary(), Message :: binary(), Script :: binary()) -> binary().
  %% ====================================================================
  dialog_popup(Title, Message, Script) ->
  
negative.code: %% ====================================================================
  bind_key_to_click_on_class(KeyCode, ClassID) ->
      Script = <<"$(document).bind('keydown', function (e){",
      "if (e.which == ", KeyCode/binary, ") { e.preventDefault(); $('.", ClassID/binary, "').click(); } });">>,
      gui_jq:wire(Script, false).
  
  
  