Fixed URI redirect for normal/expert

This commit is contained in:
Djamil Legato
2014-09-18 17:35:05 -07:00
parent 359351adf2
commit ddaa85b3e4
2 changed files with 5 additions and 4 deletions

View File

@@ -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;