-
-
Save gerneio/23ed809451345d74c01150ea3e94c1f5 to your computer and use it in GitHub Desktop.
Jitbit Issue #11891: Allowed option to default search to search message replies and attachment names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function OverrideFunctions_IfExists() { | |
if (DoSearch) { | |
var local_DoSearch = DoSearch; | |
DoSearch = function() { | |
//local_DoSearch.apply(this, arguments); | |
document.location.href = globalRootAppUrl + "Tickets/Search?btnSearch=Search&isAdvancedSearch=true&searchInComments=true&dueDateTo=&dateFrom=10%2F01%2F2019&q=" + $("#tbQuery").val(); | |
}; | |
DoSearch.local = local_DoSearch; | |
} | |
} | |
function ChangeSearchQuery() { | |
if (!$("#tbQuery").length) return; | |
var atag = $("#tbQuery").siblings("a"); | |
atag.attr("href", atag.attr("href") + "?isAdvancedSearch=true&searchInComments=true&dateFrom=10%2F01%2F2019"); | |
} | |
// Call these two functions on load/ready | |
OverrideFunctions_IfExists(); | |
ChangeSearchQuery(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment