Fixed bug when account selected is shown twice on settings pages.

This commit is contained in:
Boris Gulay
2016-05-20 18:10:52 +03:00
parent 95716183d7
commit 2b9c43858e

View File

@@ -3,10 +3,15 @@
*/
$(function() {
if ($('#plugin-ident_switch-account').size() > 0) {
$('#plugin-ident_switch-account').prependTo('.topright');
$('.topright .username').hide();
var $truName = $('.topright .username');
if ($truName.size() > 0) {
$sw = $('#plugin-ident_switch-account');
if ($sw.size() > 0) {
$sw.prependTo('.topright');
$truName.hide();
$('#plugin-ident_switch-account').show();
console.log("Doing replace.");
}
}
var $enFld = $("INPUT[name='_ident_switch.form.enabled']");