Author Topic: How can I position cursor to start of message body in message_send.php  (Read 167 times)

crackers

  • Confirmed Member
  • **
  • Posts: 2
  • Karma: +0/-0
At the moment when you go to reply to a message the cursor is automatically set in the subject box so instead of that how can I get the cursor to be automatically set at the start of the message box?

Thanks

maverick

  • Administrator
  • Veteran Member
  • *****
  • Posts: 2988
  • Karma: +210/-7
    • Maverick Webworks
I don't thinks it's possible because whether sending an initial message or a replay, they both use the same form.

The only thing you can do is prevent it from auto placing the cursor in the subject field altogether.

To do this open the js/message_send.js file and remove the following line of code, which is located on about line #11:
Code: [Select]
$('#subject')[0].focus();

Fusion Responsive Template & Free Mods
http://www.maverickwebworks.com
DO NOT PM me asking for personal help. Post your problem or request in the forums so the entire community can contribute and benefit.

crackers

  • Confirmed Member
  • **
  • Posts: 2
  • Karma: +0/-0
Hi, well, I'm no coder. I've commented out that row and it makes no difference. I've changed 'subject' to 'message_body' and the cursor still appears in the subject field. What do the previous lines of code do, acting on message_body?

maverick

  • Administrator
  • Veteran Member
  • *****
  • Posts: 2988
  • Karma: +210/-7
    • Maverick Webworks
Well I don't know why it's not working for you, I've tested it on several different versions of Etano and it works fine for me.

Maybe try cleaning your browser's cache to make sure your browser isn't using a cached version of the old js file.

Fusion Responsive Template & Free Mods
http://www.maverickwebworks.com
DO NOT PM me asking for personal help. Post your problem or request in the forums so the entire community can contribute and benefit.