Explorar el Código

Fix cookie path

Denis K hace 9 años
padre
commit
906af56aca
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      jet/static/jet/js/main.js

+ 1 - 1
jet/static/jet/js/main.js

@@ -926,7 +926,7 @@
             $('.choose-theme').on('click', function () {
                 var $link = $(this);
 
-                $.cookie('JET_THEME', $link.data('theme'), { expires: 365 });
+                $.cookie('JET_THEME', $link.data('theme'), { expires: 365, path: '/' });
 
                 $('#base-stylesheet').attr('href', $link.data('base-stylesheet'));
                 $('#select2-stylesheet').attr('href', $link.data('select2-stylesheet'));