set typeahead function for any id starting with choosedoc.../choosefold...

This commit is contained in:
Uwe Steinmann 2013-06-07 13:03:14 +02:00
parent 7fb6a58e5f
commit df883772f1

View File

@ -60,7 +60,7 @@ $(document).ready( function() {
});
/* Document chooser */
$("#choosedocsearch").typeahead({
$("[id^=choosedocsearch]").typeahead({
minLength: 3,
formname: 'form1',
source: function(query, process) {
@ -89,7 +89,7 @@ $(document).ready( function() {
});
/* Folder chooser */
$("#choosefoldersearch").typeahead({
$("[id^=choosefoldersearch]").typeahead({
minLength: 3,
formname: 'form1',
source: function(query, process) {