add span tag to displayname on expand button
This commit is contained in:
parent
278a6f5b41
commit
c111a3aa24
2 changed files with 2 additions and 4 deletions
|
@ -34,7 +34,7 @@
|
|||
|
||||
<ul id="settings" class="svg">
|
||||
<span id="expand">
|
||||
<?php echo $_['displayname'] ?>
|
||||
<span id="expandDisplayName"><?php echo $_['displayname'] ?></span>
|
||||
<img class="svg" src="<?php echo image_path('', 'actions/caret.svg'); ?>" />
|
||||
</span>
|
||||
<div id="expanddiv">
|
||||
|
|
|
@ -44,9 +44,7 @@ $(document).ready(function(){
|
|||
$('#displaynamechanged').show();
|
||||
$('#oldDisplayName').val($('#displayName').val());
|
||||
// update displayName on the top right expand button
|
||||
str_parts = $('#expand').html().split('\t');
|
||||
str_parts[5] = $('#displayName').val();
|
||||
$('#expand').html(str_parts.join('\t'));
|
||||
$('#expandDisplayName').html($('#displayName').val());
|
||||
}
|
||||
else{
|
||||
$('#newdisplayname').val(data.data.displayName)
|
||||
|
|
Loading…
Reference in a new issue