mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-07 12:56:22 +02:00
Fixed old twig uri in favor of new data-set uri
This commit is contained in:
@@ -70,7 +70,7 @@ $(function(){
|
||||
|
||||
if (action == 'continue') {
|
||||
$(window).off('beforeunload');
|
||||
window.location.href = '{{ uri.route(true) }}' + ((value == 'expert') ? '/expert:1' : '');
|
||||
window.location.href = $("#admin-mode-toggle input[name=mode-switch]:checked").data('leave-url');
|
||||
} else {
|
||||
$('input[name=mode-switch][checked]').prop('checked', true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user