Fix close hotkey overview popup #1833 (#1835)

* Fix close hotkey overview popup

* Add text how to close hotskeys overview
This commit is contained in:
Christian Günter 2018-08-17 13:34:09 +02:00 committed by Lars Hvam
parent d329a2d69f
commit f46e1e1c59
2 changed files with 12 additions and 4 deletions

View File

@ -49,7 +49,7 @@ ENDCLASS.
CLASS ZCL_ABAPGIT_GUI_CHUNK_LIB IMPLEMENTATION. CLASS zcl_abapgit_gui_chunk_lib IMPLEMENTATION.
METHOD render_branch_span. METHOD render_branch_span.
@ -125,10 +125,12 @@ CLASS ZCL_ABAPGIT_GUI_CHUNK_LIB IMPLEMENTATION.
&& zcl_abapgit_html=>a( && zcl_abapgit_html=>a(
iv_txt = '❌' iv_txt = '❌'
iv_typ = zif_abapgit_definitions=>c_action_type-onclick iv_typ = zif_abapgit_definitions=>c_action_type-onclick
iv_act = 'displayNews()' iv_act = 'closeHotkeyOverview()'
iv_class = 'close-btn' ) iv_class = 'close-btn' )
&& '</div></div>' ). && '</div></div>' ).
ro_html->add( |<div class="paddings">Close window with ? or upper right corner X</div>| ).
" Generate hotkeys " Generate hotkeys
ro_html->add( |<div class="newslist">| ). ro_html->add( |<div class="newslist">| ).

View File

@ -555,6 +555,12 @@ function displayNews() {
div.style.display = (div.style.display) ? '' : 'none'; div.style.display = (div.style.display) ? '' : 'none';
} }
// Hotkey Overview
function closeHotkeyOverview() {
var div = document.getElementById("hotkeys");
div.style.display = (div.style.display) ? '' : 'none';
}
function KeyNavigation() { function KeyNavigation() {
} }