Skip to content

Commit

Permalink
Enhancement - General - Establecer foco automáticamente en búsqueda g…
Browse files Browse the repository at this point in the history
…lobal (#531)
  • Loading branch information
juanSTIC authored Jan 21, 2025
1 parent 264c036 commit a76f449
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/javascript/sugar_3.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions jssource/src_files/include/javascript/sugar_3.js
Original file line number Diff line number Diff line change
Expand Up @@ -5101,3 +5101,14 @@ function convertReportDateTimeToDB(dateValue, timeValue) {
}
return '';
}

// STIC CUSTOM - 20241226 - JCH - Set focus in global search input
// https://github.com/SinergiaTIC/SinergiaCRM/pull/531
$(document).ready(function(){
$('button#searchbutton').on('click', function() {
setTimeout(() => {
$(this).parent('li').find('input#query_string').focus();
}, 200);
});
})
// END STIC

0 comments on commit a76f449

Please sign in to comment.