migrate to a non-deprecated (and dependency-free) cookie library

This commit is contained in:
Shish
2016-06-18 00:00:02 +01:00
parent dda634b068
commit 7bc9a73357
8 changed files with 165 additions and 57 deletions

View File

@ -1,12 +1,12 @@
/*jshint bitwise:true, curly:true, forin:false, noarg:true, noempty:true, nonew:true, undef:true, strict:false, browser:true, jquery:true */
$(function() {
var order_pool = $.cookie("shm_ui-order-pool") || "created";
var order_pool = Cookies.get("shm_ui-order-pool") || "created";
$("#order_pool option[value="+order_pool+"]").attr("selected", true);
$('#order_pool').change(function(){
var val = $("#order_pool option:selected").val();
$.cookie("shm_ui-order-pool", val, {path: '/', expires: 365}); //FIXME: This won't play nice if COOKIE_PREFIX is not "shm_".
Cookies.set("shm_ui-order-pool", val, {expires: 365}); //FIXME: This won't play nice if COOKIE_PREFIX is not "shm_".
window.location.href = '';
});
});