fix the on select handlers
This commit is contained in:
parent
fe4defe752
commit
8e0fc9e762
@ -279,7 +279,7 @@ function string2bb(element) {
|
|||||||
|
|
||||||
textcomplete.register([contacts,forums,tags], {className:'acpopup', maxCount:100, zIndex: 1020, appendTo:'nav'});
|
textcomplete.register([contacts,forums,tags], {className:'acpopup', maxCount:100, zIndex: 1020, appendTo:'nav'});
|
||||||
|
|
||||||
this.on('textComplete:select', function(e, value, strategy) { submit_form(this); });
|
this.on('select', function(e, value, strategy) { submit_form(this); });
|
||||||
};
|
};
|
||||||
})( jQuery );
|
})( jQuery );
|
||||||
|
|
||||||
@ -307,10 +307,10 @@ function string2bb(element) {
|
|||||||
textcomplete.register([contacts], {className:'acpopup', zIndex:1020});
|
textcomplete.register([contacts], {className:'acpopup', zIndex:1020});
|
||||||
|
|
||||||
if(autosubmit)
|
if(autosubmit)
|
||||||
this.on('textComplete:select', function(e,value,strategy) { submit_form(this); });
|
this.on('select', function(e,value,strategy) { submit_form(this); });
|
||||||
|
|
||||||
if(typeof onselect !== 'undefined')
|
if(typeof onselect !== 'undefined')
|
||||||
this.on('textComplete:select', function(e, value, strategy) { onselect(value); });
|
this.on('select', function(e, value, strategy) { onselect(value); });
|
||||||
};
|
};
|
||||||
})( jQuery );
|
})( jQuery );
|
||||||
|
|
||||||
@ -339,10 +339,10 @@ function string2bb(element) {
|
|||||||
textcomplete.register([names], {className:'acpopup', zIndex:1020});
|
textcomplete.register([names], {className:'acpopup', zIndex:1020});
|
||||||
|
|
||||||
if(autosubmit)
|
if(autosubmit)
|
||||||
this.on('textComplete:select', function(e,value,strategy) { submit_form(this); });
|
this.on('select', function(e,value,strategy) { submit_form(this); });
|
||||||
|
|
||||||
if(typeof onselect !== 'undefined')
|
if(typeof onselect !== 'undefined')
|
||||||
this.on('textComplete:select', function(e, value, strategy) { onselect(value); });
|
this.on('select', function(e, value, strategy) { onselect(value); });
|
||||||
};
|
};
|
||||||
})( jQuery );
|
})( jQuery );
|
||||||
|
|
||||||
@ -413,7 +413,7 @@ function string2bb(element) {
|
|||||||
|
|
||||||
textcomplete.register([bbco], {className:'acpopup', zIndex:1020});
|
textcomplete.register([bbco], {className:'acpopup', zIndex:1020});
|
||||||
|
|
||||||
this.on('textComplete:select', function(e, value, strategy) { value; });
|
this.on('select', function(e, value, strategy) { value; });
|
||||||
|
|
||||||
this.keypress(function(e){
|
this.keypress(function(e){
|
||||||
if (e.keyCode == 13) {
|
if (e.keyCode == 13) {
|
||||||
|
Reference in New Issue
Block a user