From 7763bfb4c79c8a466268fc418cbe0a1cde951bba Mon Sep 17 00:00:00 2001 From: Mokaddem Date: Thu, 10 Nov 2016 15:39:45 +0100 Subject: [PATCH] Pastes dataTable now display only the latest clicked paste even if there were discarded queries --- var/www/Flask_server.py | 3 +- .../templates/important_paste_by_module.html | 59 +++++++++++-------- var/www/templates/search.html | 59 +++++++++++-------- 3 files changed, 73 insertions(+), 48 deletions(-) diff --git a/var/www/Flask_server.py b/var/www/Flask_server.py index 79474155..e45bc407 100755 --- a/var/www/Flask_server.py +++ b/var/www/Flask_server.py @@ -811,7 +811,8 @@ def showsavedpaste(): @app.route("/showpreviewpaste/") def showpreviewpaste(): - return showpaste(max_preview_modal) + num = request.args.get('num', '') + return "|num|"+num+"|num|"+showpaste(max_preview_modal) @app.route("/getmoredata/") diff --git a/var/www/templates/important_paste_by_module.html b/var/www/templates/important_paste_by_module.html index 1f3b1bae..5b4bd8c1 100644 --- a/var/www/templates/important_paste_by_module.html +++ b/var/www/templates/important_paste_by_module.html @@ -59,7 +59,10 @@ function deploy_source() {