Index: trunk/extensions/Translate/utils/MessageTable.php |
— | — | @@ -148,6 +148,7 @@ |
149 | 149 | $tqeData = array( |
150 | 150 | 'data-title' => $title->getPrefixedText(), |
151 | 151 | 'data-group' => $this->group->getId(), |
| 152 | + 'id' => 'tqe-anchor-' . substr( sha1( $title->getPrefixedText() ), 0, 12 ), |
152 | 153 | ); |
153 | 154 | |
154 | 155 | $leftColumn = $this->getReviewButton( $m ) . $anchor . $tools['edit'] . $extra . $this->getReviewStatus( $m ); |
Index: trunk/extensions/Translate/utils/TranslationEditPage.php |
— | — | @@ -194,7 +194,8 @@ |
195 | 195 | } |
196 | 196 | |
197 | 197 | if ( $wgRequest->getVal( 'translate-beta' ) ) { |
198 | | - $onclick = 'jQuery( this ).closest( ".inlineeditable" ).dblclick(); return false;'; |
| 198 | + $text = 'tqe-anchor-' . substr( sha1( $title->getPrefixedText() ), 0, 12 ); |
| 199 | + $onclick = "jQuery( '#$text' ).dblclick(); return false;"; |
199 | 200 | } else { |
200 | 201 | $onclick = Xml::encodeJsCall( |
201 | 202 | 'return mw.translate.openDialog', array( $title->getPrefixedDbKey(), $group ) |