|
|
@ -9,7 +9,7 @@ define('search', ['navigator', 'translator', 'storage'], function (nav, translat
|
|
|
|
Search.query = function (data, callback) {
|
|
|
|
Search.query = function (data, callback) {
|
|
|
|
// Detect if a tid was specified
|
|
|
|
// Detect if a tid was specified
|
|
|
|
var topicSearch = data.term.match(/^in:topic-([\d]+) /);
|
|
|
|
var topicSearch = data.term.match(/^in:topic-([\d]+) /);
|
|
|
|
|
|
|
|
callback = callback || function () {};
|
|
|
|
if (!topicSearch) {
|
|
|
|
if (!topicSearch) {
|
|
|
|
ajaxify.go('search?' + createQueryString(data));
|
|
|
|
ajaxify.go('search?' + createQueryString(data));
|
|
|
|
callback();
|
|
|
|
callback();
|
|
|
|