Note, this has already been fixed in the master branch, so should be fine 
in the next release.

Anthony

On Tuesday, June 6, 2017 at 11:11:26 PM UTC-4, Anthony wrote:
>
> On Tuesday, June 6, 2017 at 4:13:26 PM UTC-4, Jordan Ladora wrote:
>>
>> I notice the same problem. 
>>
>> Using firefox, the js console reveals that web2py-bootstrap3.js is trying 
>> to call the function "web2py.validate_entropy", which is in web2py.js, but 
>> cannot find it.
>>
>
> web2py.validate_entropy in web2py.js is inside a closure, so cannot be 
> accessed in web2py-bootstrap3.js. This is a bug -- the ajax_fields function 
> was copied from web2py.js, and the reference to web2py.validate_entropy was 
> left as is, even though the variable "web2py" is not defined in 
> web2py-bootstrap3.js. You can fix it by changing:
>
>       web2py.validate_entropy($(this));
>
> to:
>
>       $.web2py.validate_entropy($(this));
>
> Note, this problem only arises if you add the IS_STRONG validator to 
> db.auth_user.password.requires (which is not the default). In that case, 
> the PasswordWidget in sqlhtml.py adds a "data-web2py_entropy", which 
> triggers the call to the above line. The reason the menus don't work 
> properly is because the above line breaks the Javascript code.
>
> Anthony
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to