From 0174d467886da4a0a967d5d2d97d925806ecf129 Mon Sep 17 00:00:00 2001 From: Mokaddem Date: Fri, 8 Jul 2016 12:09:33 +0200 Subject: [PATCH] Added loading GIF when searching and fixed small display bug in modal --- var/www/Flask_server.py | 2 +- var/www/static/image/loading.gif | Bin 0 -> 8077 bytes var/www/templates/search.html | 4 ++++ var/www/templates/searchbox.html | 9 +++++++-- var/www/templates/show_saved_paste.html | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 var/www/static/image/loading.gif diff --git a/var/www/Flask_server.py b/var/www/Flask_server.py index 142671fb..41ff187a 100755 --- a/var/www/Flask_server.py +++ b/var/www/Flask_server.py @@ -161,7 +161,7 @@ def getmoredata(): requested_path = request.args.get('paste', '') paste = Paste.Paste(requested_path) p_content = paste.get_p_content().decode('utf-8', 'ignore') - to_return = p_content[max_preview_modal:] + to_return = p_content[max_preview_modal-1:] return to_return diff --git a/var/www/static/image/loading.gif b/var/www/static/image/loading.gif new file mode 100644 index 0000000000000000000000000000000000000000..b60c1615d25bc79b16c81fdb5231ed02c6d11e40 GIT binary patch literal 8077 zcmdU!3tLlXx`snI1r!V+C?H^nAO`^$%_O z{Q~&@9-gu07<0@c0cQEu6Ykqi(6%=)cAnxOr+rh;@OC%xcb^SRKN~D<4wtn^WG&JA z+uqpU7L(l;r|5V~(XlqSBmQ9LdS%zU%C3zCJsS&q-Y@LgRMfM%sQ1I--o%oNpOjsM zj|?D326oj9rXRnO0p{~7(%QesPJEGl^6G(8*K*HX%WJw`aBjGu`9@jW&BN_CD=&x#V^0U zbn~0O5ik!fk38tV_2A0bw|}|)@Cz_^9$p>)?&iJkNACY{>#HAr{qXm3ZG&s4X+)A-cLJXXpm(qxMJ+mi%#%`G-EAsbpV5t84= z=jH{Oi+!`~M6@y!&T%-ueecA_cuw~EAu{=p){nUH&3ctqlUjE?$oAt-`_&vgL%w|D0s( zILX*~(m$<=Jk7hb-2sWU_|Yum&1rVk*?>=rwBDR0r)K^e;& zzEJV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