boonex / dolphin.pro

Dolphin.Pro - Social Network Platform
http://www.boonex.com
MIT License
147 stars 138 forks source link

Search by keyword generates error in Ads module on next page's switch... #638

Closed LeonidSokushev closed 5 years ago

LeonidSokushev commented 6 years ago

...if keyword contains several words, divded by spaces. The reason is that paginate link doesn't transform space (for example keyword search for profiles transforms it to "+" sign). JS error of similar situation looks like:

jquery.js:2 Uncaught Error: Syntax error, unrecognized expression: remember&page=2&per_page=1&dynamic=tab&pageBlock=4&_r=0.1578177548253903
    at Function.fa.error (jquery.js:2)
    at fa.tokenize (jquery.js:2)
    at Function.fa [as find] (jquery.js:2)
    at a.fn.init.find (jquery.js:2)
    at a.fn.init.a.fn.find (jquery-migrate.min.js:2)
    at Object.<anonymous> (jquery.js:4)
    at i (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at y (jquery.js:4)
    at XMLHttpRequest.c (jquery.js:4)