This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
wp/wp-content/themes/tcs-responsive Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -236,8 +236,6 @@ <h2>Comment Examples</h2>
236236
237237 vm . checkSubmit = function ( ev ) {
238238 if ( ev . keyCode === 13 )
239- // window.location.replace(tcconfig.mainURL + '/search?s=' + vm.searchTerm + '&scope=member');
240-
241239 window . location . replace ( tcconfig . mainURL + '/search/members/?q=' + window . encodeURIComponent ( vm . searchTerm ) ) ;
242240 }
243241
Original file line number Diff line number Diff line change @@ -274,9 +274,9 @@ var app = {
274274 return ;
275275 }
276276 if ( $ ( '#searchTypeName' ) . text ( ) == 'Site' ) {
277- window . location . replace ( "/search?s=" + keyword ) ;
277+ window . location . replace ( "/search/members/?q=" + window . encodeURIComponent ( keyword ) ) ;
278278 } else if ( $ ( '#searchTypeName' ) . text ( ) == 'Members' ) {
279- window . location . replace ( "/search?s=" + keyword + "&scope=member" ) ;
279+ window . location . replace ( "/search/members/?q=" + window . encodeURIComponent ( keyword ) ) ;
280280 }
281281 } ,
282282 setLoading : function ( ) {
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ function _kms(u){
317317
318318 vm.checkSubmit = function(ev) {
319319 if (ev.keyCode === 13)
320- window.location.replace(tcconfig.mainURL + '/search?s =' + vm.searchTerm + '&scope=member' );
320+ window.location.replace(tcconfig.mainURL + '/search/members/?q =' + window.encodeURIComponent( vm.searchTerm) );
321321 }
322322
323323 vm.isActive = function(href) {
You can’t perform that action at this time.
0 commit comments