Clear search field when viewing an object from the search results
@@ -55,61 +55,73 @@ function appendResults(searchResults){
}
$(document).on('click', "tr.domainproperty-rows", function () {
+ $("#theSearchString").val('');
var dpName = $(this).find('td:eq(2)').text();
viewDomainProperty(dpName);
});
$(document).on('click', "tr.goal-rows", function () {
+ $("#theSearchString").val('');
var goalName = $(this).find('td:eq(2)').text();
viewGoal(goalName);
});
$(document).on('click', "tr.obstacle-rows", function () {
+ $("#theSearchString").val('');
var obsName = $(this).find('td:eq(2)').text();
viewObstacle(obsName);
});
$(document).on('click', "tr.persona-rows", function () {
+ $("#theSearchString").val('');
var personaName = $(this).find('td:eq(2)').text();
viewPersona(personaName);
});
$(document).on('click', "tr.task-rows", function () {
+ $("#theSearchString").val('');
var taskName = $(this).find('td:eq(2)').text();
viewTask(taskName);
});
$(document).on('click', "tr.role-rows", function () {
+ $("#theSearchString").val('');
var roleName = $(this).find('td:eq(2)').text();
viewRole(roleName);
});
$(document).on('click', "tr.response-rows", function () {
+ $("#theSearchString").val('');
var respName = $(this).find('td:eq(2)').text();
viewResponse(respName);
});
$(document).on('click', "tr.threat-rows", function () {
+ $("#theSearchString").val('');
var thrName = $(this).find('td:eq(2)').text();
viewThreat(thrName);
});
$(document).on('click', "tr.vulnerability-rows", function () {
+ $("#theSearchString").val('');
var vulName = $(this).find('td:eq(2)').text();
viewVulnerability(vulName);
});
$(document).on('click', "tr.attacker-rows", function () {
+ $("#theSearchString").val('');
var attackerName = $(this).find('td:eq(2)').text();
viewAttacker(attackerName);
});
$(document).on('click', "tr.role-rows", function () {
+ $("#theSearchString").val('');
var roleName = $(this).find('td:eq(2)').text();
viewRole(roleName);
});
$(document).on('click', "tr.asset-rows", function () {
+ $("#theSearchString").val('');
var assetName = $(this).find('td:eq(2)').text();
viewAsset(assetName);
});
