add span tag to displayname on expand button

This commit is contained in:
Qingping Hou 2013-02-25 15:40:57 -05:00
parent 278a6f5b41
commit c111a3aa24
2 changed files with 2 additions and 4 deletions

View file

@ -34,7 +34,7 @@
<ul id="settings" class="svg"> <ul id="settings" class="svg">
<span id="expand"> <span id="expand">
<?php echo $_['displayname'] ?> <span id="expandDisplayName"><?php echo $_['displayname'] ?></span>
<img class="svg" src="<?php echo image_path('', 'actions/caret.svg'); ?>" /> <img class="svg" src="<?php echo image_path('', 'actions/caret.svg'); ?>" />
</span> </span>
<div id="expanddiv"> <div id="expanddiv">

View file

@ -44,9 +44,7 @@ $(document).ready(function(){
$('#displaynamechanged').show(); $('#displaynamechanged').show();
$('#oldDisplayName').val($('#displayName').val()); $('#oldDisplayName').val($('#displayName').val());
// update displayName on the top right expand button // update displayName on the top right expand button
str_parts = $('#expand').html().split('\t'); $('#expandDisplayName').html($('#displayName').val());
str_parts[5] = $('#displayName').val();
$('#expand').html(str_parts.join('\t'));
} }
else{ else{
$('#newdisplayname').val(data.data.displayName) $('#newdisplayname').val(data.data.displayName)