r78981 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78980‎ | r78981 | r78982 >
Date:22:30, 24 December 2010
Author:krinkle
Status:deferred
Tags:
Comment:
The dialog.load brings in new collapsible elements, these need to be bound.
Modified paths:
  • /trunk/extensions/Translate/js/quickedit.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/js/quickedit.js
@@ -64,10 +64,13 @@
6565 dialog.html( jQuery("<div/>").attr("class", "mw-ajax-dialog").html( spinner ) );
6666
6767 dialog.load(url, false, function() {
68 - var form = jQuery("#"+ id + " form");
 68+ var form = jQuery("#" + id + " form");
6969
7070 //form.hide().show( "clip" );
7171
 72+ // Enable the collapsible element
 73+ $( '.mw-identical-title' ).makeCollapsible();
 74+
7275 form.find( ".mw-translate-next" ).click( function() {
7376 trlLoadNext( page );
7477 });

Status & tagging log