How to change the wording "working..." during page refresh

52 views
Skip to first unread message

Maurice Waka

unread,
Sep 19, 2019, 11:27:10 AM9/19/19
to web2py-users
I would like to use a different wording in the web2py.js by modifying this part:
           
 /*if you don't want to see "working..." on buttons, replace the following
             * two lines with this one
             * el.data('w2p_disable_with', el[method]());
             */

           
if ((el.data('w2p_disable_with') == 'default') || (web2py.isUndefined(el.data(
                   
'w2p_disable_with')))) {
                el
.data('w2p_disable_with', disable_with_message);
           
}


I'm just not getting it right.
Not a pro in js
Pleaase help.
Regards

Massimo Di Pierro

unread,
Sep 19, 2019, 11:35:33 PM9/19/19
to web2py-users
You simply do:

<script>w2p_ajax_disable_with_message = "Doh! I am busy.";</script>

Maurice Waka

unread,
Sep 20, 2019, 5:27:15 AM9/20/19
to web2py-users
I wanted to change to code posted above...the two lines but I don't see any change.
Tried:
if ((el.data('w2p_disable_with', el[method]()))) {
                el
.data('w2p_disable_with', disable_with_message);
            
}

also is it possible to animate from the div page than the button?
Regards

--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/cpR8e4EjvsU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/b90f8471-e852-4199-9081-f4c1acf607dd%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages