|
|
@ -311,14 +311,7 @@ define([
|
|
|
|
common: Common
|
|
|
|
common: Common
|
|
|
|
};
|
|
|
|
};
|
|
|
|
var $block = exp.$language = UIElements.createDropdown(dropdownConfig);
|
|
|
|
var $block = exp.$language = UIElements.createDropdown(dropdownConfig);
|
|
|
|
$block.find('button').attr('title', Messages.languageButtonTitle).click(function () {
|
|
|
|
$block.find('button').attr('title', Messages.languageButtonTitle);
|
|
|
|
var state = $block.find('.cp-dropdown-content').is(':visible');
|
|
|
|
|
|
|
|
var $c = $block.closest('.cp-toolbar-drawer-content');
|
|
|
|
|
|
|
|
$c.removeClass('cp-dropdown-visible');
|
|
|
|
|
|
|
|
if (!state) {
|
|
|
|
|
|
|
|
$c.addClass('cp-dropdown-visible');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var isHovering = false;
|
|
|
|
var isHovering = false;
|
|
|
|
var $aLanguages = $block.find('a');
|
|
|
|
var $aLanguages = $block.find('a');
|
|
|
@ -368,15 +361,7 @@ define([
|
|
|
|
common: Common
|
|
|
|
common: Common
|
|
|
|
};
|
|
|
|
};
|
|
|
|
var $block = exp.$theme = UIElements.createDropdown(dropdownConfig);
|
|
|
|
var $block = exp.$theme = UIElements.createDropdown(dropdownConfig);
|
|
|
|
$block.find('button').attr('title', Messages.themeButtonTitle).click(function () {
|
|
|
|
$block.find('button').attr('title', Messages.themeButtonTitle);
|
|
|
|
// XXX copy-pasted code from configureLanguage. We can refactor this.
|
|
|
|
|
|
|
|
var state = $block.find('.cp-dropdown-content').is(':visible');
|
|
|
|
|
|
|
|
var $c = $block.closest('.cp-toolbar-drawer-content');
|
|
|
|
|
|
|
|
$c.removeClass('cp-dropdown-visible');
|
|
|
|
|
|
|
|
if (!state) {
|
|
|
|
|
|
|
|
$c.addClass('cp-dropdown-visible');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTheme(lastTheme, $block);
|
|
|
|
setTheme(lastTheme, $block);
|
|
|
|
|
|
|
|
|
|
|
|