r78919 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78918‎ | r78919 | r78920 >
Date:19:44, 23 December 2010
Author:dale
Status:deferred
Tags:
Comment:
fixed bug 25880
Modified paths:
  • /branches/MwEmbedStandAlone/modules/AddMedia/mw.RemoteSearchDriver.js (modified) (history)

Diff [purge]

Index: branches/MwEmbedStandAlone/modules/AddMedia/mw.RemoteSearchDriver.js
@@ -2875,11 +2875,9 @@
28762876 'background-color' : '#FFF',
28772877 'padding' : '1em'
28782878 }).loadingSpinner()
2879 - )
 2879+ );
28802880
28812881 var buttonPaneSelector = _this.target_container + '~ .ui-dialog-buttonpane';
2882 - var origTitle = $j( _this.target_container ).dialog( 'option', 'title' );
2883 -
28842882 // Update title:
28852883 $j( _this.target_container ).dialog( 'option', 'title',
28862884 gM( 'mwe-preview_insert_resource', resource.title ) );
@@ -2902,9 +2900,11 @@
29032901 .text( gM('mwe-do-more-modification' ) )
29042902 .click( function() {
29052903 $j( '#rsd_preview_display' ).remove();
 2904+ var restoreTitle = gM( 'mwe-add_media_wizard' ) + ': ' +
 2905+ gM( 'rsd_resource_edit', resource.title );
29062906
29072907 // Restore title:
2908 - $j( _this.target_container ).dialog( 'option', 'title', origTitle );
 2908+ $j( _this.target_container ).dialog( 'option', 'title', restoreTitle );
29092909
29102910 // Restore buttons (from the clipEdit object::)
29112911 _this.clipEdit.updateInsertControlActions();

Status & tagging log