Commit 94c0042a authored by jan.koester's avatar jan.koester
Browse files

test

parent 730e7fb2
Loading
Loading
Loading
Loading
+3 −3
Changes for src/blogi.cpp: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -1368,7 +1368,7 @@ void blogi::Blogi::Settings(libhttppp::HttpRequest& curreq,const int tid,const s

    setgui << "</ul>"
    <<   "<div class=\"set-sidebar-foot\">"
    <<     "<a class=\"set-close\" href=\"" << PlgArgs->config->getprefix() << "\">&#10005; " << blogi::tr(_lang,"Close") << "</a>"
    <<     "<a class=\"set-close\" href=\"" << PlgArgs->config->getstartpage() << "\">&#10005; " << blogi::tr(_lang,"Close") << "</a>"
    <<   "</div>"
    << "</div>"
    << "<div class=\"set-content\" id=\"set-content\">"
@@ -1442,12 +1442,12 @@ void blogi::Blogi::Settings(libhttppp::HttpRequest& curreq,const int tid,const s

    // Close on overlay background click
    << "document.getElementById('set-overlay').addEventListener('click',function(ev){"
    <<   "if(ev.target===this) window.location.href='" << PlgArgs->config->getprefix() << "';"
    <<   "if(ev.target===this) window.location.href='" << PlgArgs->config->getstartpage() << "';"
    << "});"

    // Close on Escape key
    << "document.addEventListener('keydown',function(ev){"
    <<   "if(ev.key==='Escape') window.location.href='" << PlgArgs->config->getprefix() << "';"
    <<   "if(ev.key==='Escape') window.location.href='" << PlgArgs->config->getstartpage() << "';"
    << "});"

    // Auto-load first section