diff --git a/assets/src/js/skinlib.js b/assets/src/js/skinlib.js index e3db3eb7..740d2cbb 100644 --- a/assets/src/js/skinlib.js +++ b/assets/src/js/skinlib.js @@ -2,11 +2,24 @@ * @Author: prpr * @Date: 2016-07-19 10:46:38 * @Last Modified by: printempw -* @Last Modified time: 2016-07-22 10:25:54 +* @Last Modified time: 2016-07-23 12:10:01 */ 'use strict'; +$('#page-select').on('change', function() { + // if has query strings + if (getQueryString('filter') != "" || getQueryString('sort') != "") { + if (getQueryString('page') == "") + window.location = location.href + "&page=" + $(this).val(); + else + window.location = "?filter="+getQueryString('filter')+"&sort="+getQueryString('sort')+"&page="+$(this).val(); + } else { + window.location = "?page=" + $(this).val(); + } + +}); + function addToCloset(tid) { var dom = '
第 {{ $page }} 页,共 {{ $total_pages }} 页