mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
item passed to updater of typeahead is now the complete element not just the data-value
This commit is contained in:
parent
f29205a558
commit
449db6bd5b
|
@ -205,7 +205,7 @@ $(document).ready( function() {
|
|||
* actually provided to update the input field where you type, but here
|
||||
* we use it to update a second input field with the doc id. */
|
||||
updater: function (item) {
|
||||
strarr = item.split("#");
|
||||
strarr = item.value.split("#");
|
||||
target = this.$element.data('target');
|
||||
$('#'+target).attr('value', strarr[0]);
|
||||
return strarr[1];
|
||||
|
@ -233,7 +233,7 @@ $(document).ready( function() {
|
|||
* actually provided to update the input field, but here we use
|
||||
* it to set the document location. */
|
||||
updater: function (item) {
|
||||
strarr = item.split("#");
|
||||
strarr = item.value.split("#");
|
||||
//console.log(this.$element.data('target'));
|
||||
target = this.$element.data('target');
|
||||
$('#'+target).attr('value', strarr[0]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user