Fixed old twig uri in favor of new data-set uri

This commit is contained in:
Djamil Legato
2014-09-21 18:27:12 -07:00
parent 8b1f7500d5
commit a0044addf8

View File

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