The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
Search div does not clear - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: Search div does not clear (/showthread.php?tid=721)



Search div does not clear - Brandin - 09-05-2017

When you make a search, e.g. on admin_users.php, if you backspace the search out, or clear it (ctrl a and delete/bkspc) it keeps the line that says "Search results for" even though the search has been cleared and the table reset.


Search div does not clear - mudmin - 09-06-2017

I noted this on the list. I'll take a look.


Search div does not clear - karsen - 09-07-2017

I have already done this, here's my code for search.js:
https://pastebin.com/uFat4xf9


Search div does not clear - Brandin - 09-07-2017

Thanks for this @Karsen


Search div does not clear - Brandin - 09-10-2017

FYI - this does the job in Firefox, IE, etc but not Chrome....

I might be leaving Chrome soon anyways...it's starting to be poorer on the usability scale and a lot of our applications at work aren't tested on Chrome (for whatever reason)...


Search div does not clear - karsen - 09-11-2017

Our stores use Chrome and we don't have an issue so maybe there's something more than just the code I gave you. I'll check and see if I can find anything.


Search div does not clear - karsen - 09-11-2017

My only other change was changing the submit to a button:
Code:
<button type="button" class="btn btn-default reset" style="width: 40px;">

I made the change on my 012 setup and it's working as expected. See if that fixes it for you as well?