Search Button on AddTask
This commit is contained in:
parent
68e80bc066
commit
7d96b0901f
@ -53,6 +53,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</addtask-setting>
|
</addtask-setting>
|
||||||
<addtask-setting><label for="searchPublicationQuery">Search Title</label><input id="searchPublicationQuery" type="text"></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>
|
</addtask-settings>
|
||||||
<div id="taskSelectOutput"></div>
|
<div id="taskSelectOutput"></div>
|
||||||
</window-content>
|
</window-content>
|
||||||
|
@ -67,6 +67,11 @@ GetAvailableControllers()
|
|||||||
|
|
||||||
searchPublicationQuery.addEventListener("keypress", (event) => {
|
searchPublicationQuery.addEventListener("keypress", (event) => {
|
||||||
if(event.key === "Enter"){
|
if(event.key === "Enter"){
|
||||||
|
NewSearch();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function NewSearch(){
|
||||||
//Disable inputs
|
//Disable inputs
|
||||||
selectRecurrence.disabled = true;
|
selectRecurrence.disabled = true;
|
||||||
connectorSelect.disabled = true;
|
connectorSelect.disabled = true;
|
||||||
@ -90,8 +95,7 @@ searchPublicationQuery.addEventListener("keypress", (event) => {
|
|||||||
connectorSelect.disabled = false;
|
connectorSelect.disabled = false;
|
||||||
searchPublicationQuery.disabled = false;
|
searchPublicationQuery.disabled = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
|
||||||
//Returns a new "Publication" Item to display in the tasks section
|
//Returns a new "Publication" Item to display in the tasks section
|
||||||
function CreatePublication(publication, connector){
|
function CreatePublication(publication, connector){
|
||||||
|
Loading…
Reference in New Issue
Block a user