Avoid duplicate languagesettings dialog in page source

Bug: 48211
Change-Id: I78ad47b1875f9f6f40707fb05f948c939fe91b39
This commit is contained in:
Santhosh Thottingal
2013-05-15 14:46:46 +05:30
parent e9fc82574c
commit 3b2e39d822

View File

@@ -58,7 +58,9 @@
constructor: LanguageSettings, constructor: LanguageSettings,
init: function () { init: function () {
$( 'body' ).append( this.$window ); if ( $( 'body' ).find( '#language-settings-dialog' ).length === 0 ) {
$( 'body' ).append( this.$window );
}
this.hide(); this.hide();
}, },