mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 17:56:07 +01:00
Fixed URI redirect for normal/expert
This commit is contained in:
@@ -44,11 +44,12 @@ $(function(){
|
||||
});
|
||||
|
||||
$("#admin-mode-toggle input[name=mode-switch]").on('change', function(e){
|
||||
var value = $(this).val();
|
||||
var value = $(this).val(),
|
||||
uri = $(this).data('leave-url');
|
||||
|
||||
if (currentValues == getState()) {
|
||||
setTimeout(function(){
|
||||
window.location.href = '{{ uri.route(true) }}' + ((value == 'expert') ? '/expert:1' : '');
|
||||
window.location.href = uri;
|
||||
}, 200)
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user