about summary refs log tree commit diff
diff options
context:
space:
mode:
authorzsloan2020-07-13 00:44:56 -0500
committerzsloan2020-07-13 00:44:56 -0500
commit67f12c466506f4d7161e3d6319019b523d1416e2 (patch)
tree9117128fa2fdcf26292dbcafc93749477f5907fe
parent28a90a10a819b543a9cec6702fb5e5283b36efea (diff)
downloadgenenetwork2-67f12c466506f4d7161e3d6319019b523d1416e2.tar.gz
Added pagination to search pages and moved info to both top and bottom of each table
-rw-r--r--wqflask/wqflask/templates/gsearch_gene.html5
-rw-r--r--wqflask/wqflask/templates/gsearch_pheno.html5
-rw-r--r--wqflask/wqflask/templates/search_result_page.html18
-rw-r--r--wqflask/wqflask/templates/snp_browser.html4
4 files changed, 18 insertions, 14 deletions
diff --git a/wqflask/wqflask/templates/gsearch_gene.html b/wqflask/wqflask/templates/gsearch_gene.html
index 8c261eec..62ef1a7b 100644
--- a/wqflask/wqflask/templates/gsearch_gene.html
+++ b/wqflask/wqflask/templates/gsearch_gene.html
@@ -249,10 +249,11 @@
                     }
                 ],
                 'order': [[1, "asc" ]],
-                'sDom': "tir",
+                'sDom': "pitirp",
                 'autoWidth': true,
+                'iDisplayLength': 500,
                 'deferRender': true,
-                'paging': false,
+                'paging': true,
                 'orderClasses': true,
                 'processing': true,
                 'language': {
diff --git a/wqflask/wqflask/templates/gsearch_pheno.html b/wqflask/wqflask/templates/gsearch_pheno.html
index 04b45659..f5058158 100644
--- a/wqflask/wqflask/templates/gsearch_pheno.html
+++ b/wqflask/wqflask/templates/gsearch_pheno.html
@@ -250,10 +250,11 @@
                     }
                 ],
                 'order': [[1, "asc" ]],
-                'sDom': "tir",
+                'sDom': "pitirp",
                 'autoWidth': false,
                 'deferRender': true,
-                'paging': false,
+                'iDisplayLength': 500,
+                'paging': true,
                 'orderClasses': true,
                 'processing': true,
                 'language': {
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index 3dfae3dd..1f76ea82 100644
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -377,11 +377,12 @@
                         } else{
                           author_string = data.authors
                         }
-                        try {
-                          return decodeURIComponent(escape(author_string))
-                        } catch(err){
-                          return author_string
-                        }
+                        return author_string
+                        // try {
+                        //   return decodeURIComponent(escape(author_string))
+                        // } catch(err){
+                        //   return author_string
+                        // }
                       }
                     },
                     {
@@ -441,12 +442,13 @@
                         postfixButtons: [ 'colvisRestore' ]
                     }
                 ],
-                'sDom': "Bitir",
+                'sDom': "Bpitirp",
                 {% else %}
-                'sDom': "itir",
+                'sDom': "pitirp",
                 {% endif %}
+                'iDisplayLength': 500,
                 'deferRender': true,
-                'paging': false,
+                'paging': true,
                 'orderClasses': true,
                 'processing': true,
                 'language': {
diff --git a/wqflask/wqflask/templates/snp_browser.html b/wqflask/wqflask/templates/snp_browser.html
index 88cb4d31..4537cd06 100644
--- a/wqflask/wqflask/templates/snp_browser.html
+++ b/wqflask/wqflask/templates/snp_browser.html
@@ -406,8 +406,8 @@
       ],
       {% endif %}
       'order': [[1, "asc" ]],
-      'sDom': "rti",
-      'iDisplayLength': -1,
+      'sDom': "rtip",
+      'iDisplayLength': 500,
       'processing': true,
       'language': {
         'loadingRecords': ' ',