Author |
|
Adkar Newbie
Joined: 26 September 2011 Location: South Africa
Online Status: Offline Posts: 15
|
Posted: 29 September 2011 at 5:38am | IP Logged
|
|
|
Hi there,
So far the Webmail Lite software is working really well.
Just wanted to find out how to change the text for the submit button when adding attachments. i had to change from the flash button to the basic html buttons but cannot seem to change the text of the one button. i want to change the text from "Submit Query" to simply "Submit" or "Add" but cannot seem to find any reference to the button in the code.
Thanks very much,
Adkar
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 29 September 2011 at 1:04pm | IP Logged
|
|
|
Can you please confirm whether this is about Flash-based file uploader (large green button) or HTML-based one (regular submit button)?
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Adkar Newbie
Joined: 26 September 2011 Location: South Africa
Online Status: Offline Posts: 15
|
Posted: 29 September 2011 at 11:50pm | IP Logged
|
|
|
Hi,
Sorry its about the HTML-based one.
it has a "Browse" button and next to it is the "Submit Query" button that i want to change the text of.
Adkar
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 30 September 2011 at 1:29am | IP Logged
|
|
|
Are you using non-English language set for user account interface? It shows Attach for me on that button. And when I switch to, say, French - the message on the button gets translated as expected.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Adkar Newbie
Joined: 26 September 2011 Location: South Africa
Online Status: Offline Posts: 15
|
Posted: 30 September 2011 at 4:40am | IP Logged
|
|
|
My language setting is on English now. It's weird how it shows different text. i tried changing the language to French but the text for the button stayed the same.
do you know where the html-based uploader is called from? or in which file its called?
|
Back to Top |
|
|
Adkar Newbie
Joined: 26 September 2011 Location: South Africa
Online Status: Offline Posts: 15
|
Posted: 30 September 2011 at 7:31am | IP Logged
|
|
|
I'm such an idiot. I was using IE9 and the button was "Submit Query" but in chrome and firefox its "Attach"
so that sorts out my problem, it's browser specific. Is there a reason for the text changing between browsers though?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 03 October 2011 at 1:35am | IP Logged
|
|
|
Have just tried to reproduce that in IE9, and I see "Attach" text there as well. I'm not sure why this doesn't work for you, this could be due to some modifications in the code. As for the upload script itself, it's a solid part of js/new-message-screen.js file, and Lang.Attach holds the text for that button. For HTML uploader, the line in question is ~1142:
Code:
inp = CreateChild(form, 'input', [['type', 'submit'], ['class', 'wm_button'], ['value', Lang.Attach]]); |
|
|
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Adkar Newbie
Joined: 26 September 2011 Location: South Africa
Online Status: Offline Posts: 15
|
Posted: 03 October 2011 at 4:10am | IP Logged
|
|
|
Thank you so much!
I am able to change the text of the button now but, once again, it does nothing in IE.. any change I make, colour/font/text does not show in IE but does show in Firefox and Chrome.
Any ideas for fixes for that? or why it could be happening?
Adkar
|
Back to Top |
|
|
Adkar Newbie
Joined: 26 September 2011 Location: South Africa
Online Status: Offline Posts: 15
|
Posted: 03 October 2011 at 5:56am | IP Logged
|
|
|
Ok i got it working.
I should've follow the principle "The simplest answer is usually the best one"
The only reason that it wasnt working in IE was because compatibility mode was off
All is working now. Thank you for all the help once again Igor.
Adkar
|
Back to Top |
|
|