mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
Merge pull request #47 from creamarketing/locale-dropdown-disappear
BUG: locale dropdown sometimes hidden after panel reload
This commit is contained in:
commit
98f8b6a71a
@ -30,6 +30,11 @@
|
||||
* whenever a new value is selected, reload the whole CMS in the new locale
|
||||
*/
|
||||
$('.CMSMain #Form_LangForm :input[name=Locale]').entwine({
|
||||
onmatch: function() {
|
||||
// make sure this element is shown, since it might be hidden by chosen before the panel is cached
|
||||
$(this).show();
|
||||
this._super();
|
||||
},
|
||||
onchange: function(e) {
|
||||
var url = $.path.addSearchParams(
|
||||
document.location.href.replace(/locale=[^&]*/, ''),
|
||||
|
Loading…
Reference in New Issue
Block a user