Alex Monk has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/62438


Change subject: Fix CharInsert not working in LQT
......................................................................

Fix CharInsert not working in LQT

LQT dynamically creates it's own text boxes and this code should take that into
account.

Bug: 41220
Change-Id: Id9469f9dfcbb92854780c63252cd9c5069e94487
---
M resources/mediawiki.action/mediawiki.action.edit.js
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/38/62438/1

diff --git a/resources/mediawiki.action/mediawiki.action.edit.js 
b/resources/mediawiki.action/mediawiki.action.edit.js
index 2835c9c..3a02424 100644
--- a/resources/mediawiki.action/mediawiki.action.edit.js
+++ b/resources/mediawiki.action/mediawiki.action.edit.js
@@ -148,9 +148,9 @@
                        }
                }() );
 
-               $( 'textarea, input:text' ).focus( function () {
-                       currentFocused = $(this);
-               });
+               $( document ).on( 'focus', 'textarea, input:text', function () 
{ // Apply to dynamically created textboxes as well - for LQT
+                       currentFocused = $( this );
+               } );
 
                // HACK: make currentFocused work with the usability iframe
                // With proper focus detection support (HTML 5!) this'll be 
much cleaner

-- 
To view, visit https://gerrit.wikimedia.org/r/62438
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id9469f9dfcbb92854780c63252cd9c5069e94487
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to