Re: [web2py] Buttons labels change to "Working..." when pressed

2018-04-17 Thread Junior Phanter
check your we2py_ajax.html in your view folder, try change the line "var
w2p_ajax_disable_with_message = "{{=T('Working...')}}";"

2018-04-17 23:12 GMT-03:00 Michael Cowen :

>
> I am not sure if this is related to web2py or something else so I thought
> I would ask ...
>
> I have three buttons that I make a toggle switch through Java script.  The
> Java script changes their class name which then lets different CSS style
> them.  I have noticed that when I click a button, EVERY single button on
> the page flashes with the word "Working ...".  My class name changes are
> applied to this intermediate state that I cannot figure out where it is
> coming from.  So the toggling happens to the buttons like I want, but the
> labels change and I did not do this in code.  Then when the labels change
> back, my class name changes are gone.  It is as if something remembers the
> page, executes the Java script against an automatic modified version of the
> page, then when complete restores the page.  Is this something the web2py
> framework does ?   I cannot find any JavaScript running that would explain
> this.
>
>
> --
> 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 web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Buttons labels change to "Working..." when pressed

2018-04-17 Thread Michael Cowen

I am not sure if this is related to web2py or something else so I thought I 
would ask ...

I have three buttons that I make a toggle switch through Java script.  The 
Java script changes their class name which then lets different CSS style 
them.  I have noticed that when I click a button, EVERY single button on 
the page flashes with the word "Working ...".  My class name changes are 
applied to this intermediate state that I cannot figure out where it is 
coming from.  So the toggling happens to the buttons like I want, but the 
labels change and I did not do this in code.  Then when the labels change 
back, my class name changes are gone.  It is as if something remembers the 
page, executes the Java script against an automatic modified version of the 
page, then when complete restores the page.  Is this something the web2py 
framework does ?   I cannot find any JavaScript running that would explain 
this.


-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.