inherit
97216
0
Nov 23, 2024 12:51:52 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jul 15, 2013 9:37:25 GMT -8
I don't know how this would be possible because all of the dialogs are created dynamically; I thought I'd see what other developers around here could come up with. I'd like to have a default message for my site because when you move a thread out of a certain board, you're supposed to send a PM with it. It takes time to find the PM guts in a post somewhere, and would just like it to be there by default.
Thanks!
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Jul 15, 2013 13:10:42 GMT -8
I don't really understand your question.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Jul 15, 2013 13:27:18 GMT -8
I think I do...
Try this..
function createMessage(pmb) { if(pmb.innerHTML == 'Send PM') { var ta = document.getElementById('move-threads-container').getElementsByTagName('textarea')[0]; ta.innerHTML = 'New Message'; } return; }
$('span[class=ui-button-text]') .livequery(function() { createMessage(this); return false; });
|
|
inherit
97216
0
Nov 23, 2024 12:51:52 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jul 15, 2013 13:53:10 GMT -8
I think I do... Try this.. function createMessage(pmb) { if(pmb.innerHTML == 'Send PM') { var ta = document.getElementById('move-threads-container').getElementsByTagName('textarea')[0]; ta.innerHTML = 'New Message'; } return; }
$('span[class=ui-button-text]') .livequery(function() { createMessage(this); return false; }); Lookie there, that does it! Thanks Todge!
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Jul 15, 2013 13:54:29 GMT -8
No worries..
|
|