[web2py] autocomplete tweak, jquery fade out time

2012-10-03 Thread Mike
The autocomplete box takes too long to disappear when it is no longer in focus. I found the setting for this, it is in gluon/sqlhtml.py : [inside __call__ for autocomplete, line 597 for web2py 1.99] attr['_onblur']=jQuery('#%(div_id)s').delay(3000).fadeOut('slow'); % \

Re: [web2py] autocomplete tweak, jquery fade out time

2012-10-03 Thread Richard Vézina
I think the class for autocomplete is pretty compact and self contained. So, you can just copy the class in your app somewhere in models if you need from many differents controllers or in the controller where you need it instead, rename it and change all what you want then. I had make a

Re: [web2py] autocomplete tweak, jquery fade out time

2012-10-03 Thread Tim Richardson
I have to make a slice about that and redo the integration with the new version of the autocomplete widget because it have been changed since I did my own autocomplete select or add option. Hi Richard, I look forward to that because I also want to try to tweak this widget. --

Re: [web2py] autocomplete tweak, jquery fade out time

2012-10-03 Thread Richard Vézina
Hi Tim, If you can't wait, and have the skill to take the path of tweaking a widget you can have look at this thread : https://groups.google.com/forum/?fromgroups=#!topic/web2py/9KamKgHKUwU You can also read this slice : http://www.web2pyslices.com/slice/show/1446/widget-select-or-add-option