Commit 623681be792b30f9aa86492fb6a234be4bec9f03

Authored by 王言钊
1 parent 40f40dcd

修复图文模块条件搜索下拉列展开

src/main/resources/templates/page/content.html
... ... @@ -480,8 +480,10 @@
480 480 var count = "";
481 481 var contentId = "";
482 482 var content_tag = "";
  483 + var expand_list_state = "";
483 484  
484 485 function updateValue() {
  486 + expand_list_state = $("#forms").attr("expand_list_state");
485 487 title = $("#video_titleID").val();
486 488 source = $("#source").val();
487 489 author = $("#author").val();
... ... @@ -500,7 +502,6 @@
500 502 //全部
501 503 function quanbu() {
502 504 updateValue();
503   - var expand_list_state = $("#forms").attr("expand_list_state");
504 505 window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&expand_list_state=" + expand_list_state;
505 506 }
506 507  
... ... @@ -508,25 +509,25 @@
508 509 $('#daishen').click(function () {
509 510 updateValue();
510 511 var receive_status = 0;
511   - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag;
  512 + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&expand_list_state=" + expand_list_state;
512 513 });
513 514 //我的待审核
514 515 $('#Mydaishen').click(function () {
515 516 updateValue();
516 517 var receive_status = 1;
517   - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag;
  518 + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&expand_list_state=" + expand_list_state;
518 519 });
519 520 //我的已审核
520 521 $('#yishen').click(function () {
521 522 updateValue();
522 523 var receive_status = 2;
523   - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag;
  524 + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&expand_list_state=" + expand_list_state;
524 525 });
525 526  
526 527  
527 528 //查询
528 529 $('#videos_query').click(function () {
529   - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag;
  530 + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&expand_list_state=" + expand_list_state;
530 531 });
531 532 /*全选的操作*/
532 533 $('#select_all').click(function () {
... ...