Fixed bug when account selected is shown twice on settings pages.
This commit is contained in:
@@ -3,10 +3,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
if ($('#plugin-ident_switch-account').size() > 0) {
|
var $truName = $('.topright .username');
|
||||||
$('#plugin-ident_switch-account').prependTo('.topright');
|
if ($truName.size() > 0) {
|
||||||
$('.topright .username').hide();
|
$sw = $('#plugin-ident_switch-account');
|
||||||
|
if ($sw.size() > 0) {
|
||||||
|
$sw.prependTo('.topright');
|
||||||
|
$truName.hide();
|
||||||
$('#plugin-ident_switch-account').show();
|
$('#plugin-ident_switch-account').show();
|
||||||
|
console.log("Doing replace.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var $enFld = $("INPUT[name='_ident_switch.form.enabled']");
|
var $enFld = $("INPUT[name='_ident_switch.form.enabled']");
|
||||||
|
|||||||
Reference in New Issue
Block a user