Jump to content

Simple suggestion re: Fast Reply


Guest TCWT

Recommended Posts

Posted

After you click on the Fast Reply button, the cursor should already be in the text field so you don't need to click again. ;)

Posted

Nice idea - to add this feature manually, open the skin group "Topic View", edit the template bit "quick_reply_box_closed" and add

document.getElementById('fast-reply_textarea').focus();

at the end of the HREF attribute, so it looks something like this:

<a href="java script:ShowHide('qr_open','qr_closed'); document.getElementById('fast-reply_textarea').focus();" title="{$this->ipsclass->lang['qr_open']}" accesskey="f"><{T_QREPLY}></a>



(it's not actually supposed to say java script: with a space)

Posted

I have to click into the text field whilst using the standard "Add Reply", should that not be the case?



That's normal. Perhaps, it should be applied to the standard Add Reply too.

Thanks for the code. :)
Posted

Thanks, any way to not apply it to Add New Topic? Cursor should be on Topic Title field when creating new topics. :D

EDIT: and while we're at it, the cursor should be on recipient's field when composing PMs. :thumbsup:

Posted

That's normal. Perhaps, it should be applied to the standard Add Reply too.


Ah ok cheers, just wondered why you didn't mention the standard reply, it was if it already has that feature!

Cheers :)
Posted

BTW, this does not work:

# Open the skin group 'Post / PM Editor' of your skin and edit the template bit 'ips_editor'
# In the beginning add:

<script type="text/javascript">setAutoFocus('{$editor_id}_textarea');</script>


Posted

Are you using the RTE? The script only works with the normal editor, since you can't use Javascript to focus on the RTE (as far as I know).

Posted

That's funny because I only use the normal reply when I have to close a topic. Hell I wouldn't have to use normal reply if there were mod actions in the fast reply. It just seems to me that such a logical modification would have been implanted into IPB by now instead of staying 3rd party.

  • 2 weeks later...
Posted

Actually having the cursor automatically jump to the text field on the regular reply and PM editor may not be such a good idea. Whenever you Preview a message/post, the page jumps down and you'll have to scroll back up.. it's kinda annoying. I think I'm going to just apply it for Fast Reply only.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...