2
0

Search Button on AddTask

This commit is contained in:
glax 2023-05-24 20:57:41 +02:00
parent 68e80bc066
commit 7d96b0901f
2 changed files with 28 additions and 23 deletions

View File

@ -53,6 +53,7 @@
</select>
</addtask-setting>
<addtask-setting><label for="searchPublicationQuery">Search Title</label><input id="searchPublicationQuery" type="text"></addtask-setting>
<input type="submit" value="Search" onclick="NewSearch();">
</addtask-settings>
<div id="taskSelectOutput"></div>
</window-content>

View File

@ -67,6 +67,11 @@ GetAvailableControllers()
searchPublicationQuery.addEventListener("keypress", (event) => {
if(event.key === "Enter"){
NewSearch();
}
});
function NewSearch(){
//Disable inputs
selectRecurrence.disabled = true;
connectorSelect.disabled = true;
@ -90,8 +95,7 @@ searchPublicationQuery.addEventListener("keypress", (event) => {
connectorSelect.disabled = false;
searchPublicationQuery.disabled = false;
});
}
});
}
//Returns a new "Publication" Item to display in the tasks section
function CreatePublication(publication, connector){