Index: branches/MwEmbedStandAlone/modules/AddMedia/mw.RemoteSearchDriver.js |
— | — | @@ -2875,11 +2875,9 @@ |
2876 | 2876 | 'background-color' : '#FFF', |
2877 | 2877 | 'padding' : '1em' |
2878 | 2878 | }).loadingSpinner() |
2879 | | - ) |
| 2879 | + ); |
2880 | 2880 | |
2881 | 2881 | var buttonPaneSelector = _this.target_container + '~ .ui-dialog-buttonpane'; |
2882 | | - var origTitle = $j( _this.target_container ).dialog( 'option', 'title' ); |
2883 | | - |
2884 | 2882 | // Update title: |
2885 | 2883 | $j( _this.target_container ).dialog( 'option', 'title', |
2886 | 2884 | gM( 'mwe-preview_insert_resource', resource.title ) ); |
— | — | @@ -2902,9 +2900,11 @@ |
2903 | 2901 | .text( gM('mwe-do-more-modification' ) ) |
2904 | 2902 | .click( function() { |
2905 | 2903 | $j( '#rsd_preview_display' ).remove(); |
| 2904 | + var restoreTitle = gM( 'mwe-add_media_wizard' ) + ': ' + |
| 2905 | + gM( 'rsd_resource_edit', resource.title ); |
2906 | 2906 | |
2907 | 2907 | // Restore title: |
2908 | | - $j( _this.target_container ).dialog( 'option', 'title', origTitle ); |
| 2908 | + $j( _this.target_container ).dialog( 'option', 'title', restoreTitle ); |
2909 | 2909 | |
2910 | 2910 | // Restore buttons (from the clipEdit object::) |
2911 | 2911 | _this.clipEdit.updateInsertControlActions(); |