added option to order pool list by created date/last updated/title/count

This commit is contained in:
Daku
2013-12-30 01:48:07 +00:00
parent 3e240fa78d
commit b79a042bdc
3 changed files with 36 additions and 1 deletions

10
ext/pools/script.js Normal file
View File

@ -0,0 +1,10 @@
$(function() {
var order_pool = $.cookie("shm_ui-order-pool");
$("#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_".
window.location.href = '';
});
});